From ba6f7bf2a33b57c86558caa72913b4623ad46b5a Mon Sep 17 00:00:00 2001 From: nefrace Date: Wed, 2 Feb 2022 13:11:53 +0300 Subject: [PATCH] Updated Dockerfile, added .dockerignore --- .dockerignore | 8 ++++++++ Dockerfile | 3 +++ 2 files changed, 11 insertions(+) create mode 100644 .dockerignore diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..6733ab4 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,8 @@ +.git +.gitignore +README.md +bin +*.env +.vscode +mongodata +mongoconfig \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 51f6738..05a9401 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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