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