Updated Dockerfile, added .dockerignore
This commit is contained in:
parent
4cdc2a3ef5
commit
ba6f7bf2a3
|
@ -0,0 +1,8 @@
|
|||
.git
|
||||
.gitignore
|
||||
README.md
|
||||
bin
|
||||
*.env
|
||||
.vscode
|
||||
mongodata
|
||||
mongoconfig
|
|
@ -1,5 +1,8 @@
|
|||
FROM golang:1.14.3-alpine AS build
|
||||
WORKDIR /src
|
||||
COPY ./go.mod go.mod
|
||||
COPY ./go.sum go.sum
|
||||
RUN go mod download
|
||||
COPY . .
|
||||
RUN go build -o /out/kicker
|
||||
|
||||
|
|
Loading…
Reference in New Issue