ci: reconfigured build steps

This commit is contained in:
Reinaldy Rafli 2021-07-09 20:46:12 +07:00
parent 3b66f0de25
commit 168bb36883
4 changed files with 24 additions and 4 deletions

View File

@ -32,7 +32,7 @@ That's it.
Two ways of doing this: Two ways of doing this:
1. Install all the tech stack on your local machine 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. See README files on each project directory for further instruction on how to run the development environment.

10
api/Dockerfile Normal file
View File

@ -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"]

11
client/Dockerfile Normal file
View File

@ -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"]

View File

@ -1,4 +1,3 @@
build: build:
web: cd api && go build -v main.go docker:
run: web: api/Dockerfile
web: ./api/main