build: config

This commit is contained in:
Reinaldy Rafli 2021-07-15 02:13:30 +07:00
parent ec16f91f7b
commit b8c033d04e
3 changed files with 26 additions and 3 deletions

21
api/.dockerignore Normal file
View File

@ -0,0 +1,21 @@
# Binaries for programs and plugins
*.exe
*.exe~
*.dll
*.so
*.dylib
# Test binary, built with `go test -c`
*.test
# Output of the go coverage tool, specifically when used with LiteIDE
*.out
# Dependency directories (remove the comment below to include it)
vendor/
# Environment variable
.env
# Heroku bin directory
bin

View File

@ -4,7 +4,7 @@ WORKDIR /app
COPY . .
RUN go mod download -v
RUN go mod download
RUN go build -v main.go
CMD ["main"]
CMD ["./main"]

View File

@ -1,3 +1,5 @@
build:
docker:
web: api/Dockerfile
web: api/Dockerfile
config:
ENV: production