aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorTill Faelligen <2353100+S7evinK@users.noreply.github.com>2022-11-04 11:54:53 +0100
committerTill Faelligen <2353100+S7evinK@users.noreply.github.com>2022-11-04 11:54:53 +0100
commiteeabe892a906455430ca44577afa949e6ab95d95 (patch)
tree5d78d4789d27ffd66bf21df48b124326b0b059e5 /Dockerfile
parent98d3f88bfbfaa23aa4ca63abf9c980b39425cd24 (diff)
Cache go mod directory
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile1
1 files changed, 1 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
index 630dd466..49999234 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -16,6 +16,7 @@ ARG TARGETARCH
ARG FLAGS
RUN --mount=target=. \
--mount=type=cache,target=/root/.cache/go-build \
+ --mount=type=cache,target=/go/pkg/mod \
USERARCH=`go env GOARCH` \
GOARCH="$TARGETARCH" \
GOOS="linux" \