Updated Dockerfile, added .dockerignore
This commit is contained in:
8
.dockerignore
Normal file
8
.dockerignore
Normal file
@ -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
|
FROM golang:1.14.3-alpine AS build
|
||||||
WORKDIR /src
|
WORKDIR /src
|
||||||
|
COPY ./go.mod go.mod
|
||||||
|
COPY ./go.sum go.sum
|
||||||
|
RUN go mod download
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN go build -o /out/kicker
|
RUN go build -o /out/kicker
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user