ci: reconfigured build steps
This commit is contained in:
parent
3b66f0de25
commit
168bb36883
|
@ -32,7 +32,7 @@ That's it.
|
|||
|
||||
Two ways of doing this:
|
||||
1. Install all the tech stack on your local machine
|
||||
2. Use docker-compose
|
||||
2. Use docker-compose (TODO)
|
||||
|
||||
See README files on each project directory for further instruction on how to run the development environment.
|
||||
|
||||
|
|
|
@ -0,0 +1,10 @@
|
|||
FROM golang:1.16.5-buster
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY . .
|
||||
|
||||
RUN go mod download -v
|
||||
RUN go build -v main.go
|
||||
|
||||
CMD ["main"]
|
|
@ -0,0 +1,11 @@
|
|||
FROM node:14.17.3-buster
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY . .
|
||||
|
||||
RUN npm install -g yarn
|
||||
RUN yarn install
|
||||
RUN yarn build
|
||||
|
||||
CMD ["yarn", "preview"]
|
|
@ -1,4 +1,3 @@
|
|||
build:
|
||||
web: cd api && go build -v main.go
|
||||
run:
|
||||
web: ./api/main
|
||||
docker:
|
||||
web: api/Dockerfile
|
Loading…
Reference in New Issue