mount caches when building db-tools (#6668)

minor improvement to the Dockerfile
This commit is contained in:
Bryan Stitt 2023-01-22 21:01:39 -08:00 committed by GitHub
parent 20a4ae4ffb
commit 2356b5a3f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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