From 2356b5a3f11bf228d18d0b76be103d4ffa48d385 Mon Sep 17 00:00:00 2001 From: Bryan Stitt Date: Sun, 22 Jan 2023 21:01:39 -0800 Subject: [PATCH] mount caches when building db-tools (#6668) minor improvement to the Dockerfile --- Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 8dcac9ee3..599d451b4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -27,7 +27,10 @@ ADD go.sum go.sum RUN mkdir -p /app/build/bin -RUN make db-tools +RUN --mount=type=cache,target=/root/.cache \ + --mount=type=cache,target=/tmp/go-build \ + --mount=type=cache,target=/go/pkg/mod \ + make db-tools FROM docker.io/library/alpine:3.16