From 312e738b2512c6d2e05cdc9206c628c9635dce0e Mon Sep 17 00:00:00 2001 From: Eric Rakestraw Date: Thu, 19 Mar 2026 21:20:25 -0500 Subject: [PATCH] Patch the Dockerfile so that go build reuses the module cache --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 02d64d2..75f2ef8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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" \