build: config
This commit is contained in:
parent
ec16f91f7b
commit
b8c033d04e
|
@ -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
|
|
@ -4,7 +4,7 @@ WORKDIR /app
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
RUN go mod download -v
|
RUN go mod download
|
||||||
RUN go build -v main.go
|
RUN go build -v main.go
|
||||||
|
|
||||||
CMD ["main"]
|
CMD ["./main"]
|
|
@ -1,3 +1,5 @@
|
||||||
build:
|
build:
|
||||||
docker:
|
docker:
|
||||||
web: api/Dockerfile
|
web: api/Dockerfile
|
||||||
|
config:
|
||||||
|
ENV: production
|
Loading…
Reference in New Issue