Updated Dockerfile, added .dockerignore

This commit is contained in:
nefrace 2022-02-02 13:11:53 +03:00
parent 4cdc2a3ef5
commit ba6f7bf2a3
2 changed files with 11 additions and 0 deletions

8
.dockerignore Normal file
View File

@ -0,0 +1,8 @@
.git
.gitignore
README.md
bin
*.env
.vscode
mongodata
mongoconfig

View File

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