Add cache mount for apk downloads

This commit is contained in:
9seconds
2026-03-12 22:46:19 +01:00
parent 287a794772
commit 4dca1d2b07
+6 -5
View File
@@ -5,11 +5,12 @@ FROM golang:1.26-alpine AS build
ENV CGO_ENABLED=0 ENV CGO_ENABLED=0
RUN set -x \ RUN --mount=type=cache,target=/var/cache/apk \
&& apk --no-cache --update add \ set -x \
bash \ && apk --update add \
ca-certificates \ bash \
git ca-certificates \
git
COPY go.mod go.sum /app/ COPY go.mod go.sum /app/
WORKDIR /app WORKDIR /app