We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3b1a2f0 + 5cb3d20 commit 69b8fd5Copy full SHA for 69b8fd5
1 file changed
Dockerfile
@@ -23,11 +23,12 @@ RUN apk add --no-cache ca-certificates tzdata
23
24
COPY crossview-go-server/go.mod ./
25
ENV GOTOOLCHAIN=auto
26
-RUN go mod tidy && go mod download
+RUN go mod tidy && go mod download -x
27
28
COPY crossview-go-server/ ./
29
30
-RUN CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -o /app/crossview-server ./main.go
+RUN go mod download && \
31
+ CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -o /app/crossview-server ./main.go
32
33
FROM alpine:latest
34
0 commit comments