We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c5f94e1 commit df00820Copy full SHA for df00820
Dockerfile
@@ -6,8 +6,10 @@ FROM --platform=${BUILDPLATFORM} ${BUILDER_IMAGE} AS builder
6
ARG TARGETARCH
7
8
WORKDIR /workspace
9
-
+# cache deps before building so that we don't need to re-download as much
10
+# and so that source changes don't invalidate our downloaded layer
11
COPY . .
12
+RUN go mod download
13
# Build
14
# the GOARCH has not a default value to allow the binary be built according to the host where the command
15
# was called. For example, if we call make docker-build in a local env which has the Apple Silicon M1 SO
0 commit comments