Patch the Dockerfile so that go build reuses the module cache
Some checks failed
ci/woodpecker/push/build-image Pipeline failed

This commit is contained in:
2026-03-19 21:20:25 -05:00
parent d55b4be7ec
commit 312e738b25

View File

@@ -47,7 +47,8 @@ RUN --mount=type=cache,target=/go/pkg/mod \
go test ./...
# Build the cmd entrypoint
RUN --mount=type=cache,target=/root/.cache/go-build \
RUN --mount=type=cache,target=/go/pkg/mod \
--mount=type=cache,target=/root/.cache/go-build \
go build \
-trimpath \
-ldflags="-s -w" \