Skip to content

Commit c2e49b5

Browse files
committed
Cache Go modules in development builds
1 parent 1971629 commit c2e49b5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ COPY hack/tools/queries /opt/crunchy/conf
1010
WORKDIR /usr/src/app
1111
COPY . .
1212
ENV GOCACHE=/var/cache/go
13+
ENV GOMODCACHE=/var/cache/go/mod
1314
RUN --mount=type=cache,target=/var/cache/go go build ./cmd/postgres-operator
1415

1516
FROM docker.io/library/debian:bookworm

0 commit comments

Comments
 (0)