Skip to content

Commit 18ce074

Browse files
committed
Simplify mod predownload
1 parent a7101f8 commit 18ce074

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Dockerfile

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,7 @@ RUN apk add --no-cache \
1010

1111
WORKDIR /build
1212
COPY go.sum go.mod .
13-
14-
# Fetch dependencies in a separate layer to speed up rebuilds.
15-
ARG FORMAT='{{ if not .Main }}{{ .Path }}/...@{{ .Version }}{{ end }}'
16-
RUN for PACKAGE in $(go list -m -f "$FORMAT" all); do go get $PACKAGE; done
13+
RUN go mod download
1714

1815
# Build.
1916
COPY . .

0 commit comments

Comments
 (0)