From 4df5980ad36ff69938eefa59dbc14c94cdf0b2e0 Mon Sep 17 00:00:00 2001 From: Richard Hillmann Date: Thu, 26 May 2022 21:33:51 +0200 Subject: [PATCH] Use go mod download --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 303d3b3..18152aa 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,7 +3,7 @@ FROM golang:1.18 as builder WORKDIR /go/src/github.com/project0/certjunkie/ COPY . . -RUN go get -v +RUN go mod download RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -ldflags '-w' -o certjunkie .