From e4356447de2910ffa1636eb82e53dcd0f6e90414 Mon Sep 17 00:00:00 2001 From: fallion Date: Sat, 23 Jan 2021 15:56:22 +0100 Subject: [PATCH] fix: docker build used makefile --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 3e8e197a..bc1203b9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,8 +6,8 @@ RUN apk add --no-cache make git gcc musl-dev # This step is done separately than `COPY . /app/` in order to # cache dependencies. -COPY go.mod go.sum Makefile /app/ -RUN make install_deps +COPY go.mod go.sum /app/ +RUN go mod download COPY . /app/ RUN CGO_ENABLED=0 go build -a -tags "osusergo netgo" --ldflags "-linkmode external -extldflags '-static'" -o build/release-notary .