File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -27,7 +27,8 @@ ARG TARGETPLATFORM
2727ARG APP_VERSION=0.0.0
2828
2929# Install build-time system dependencies using BuildKit cache mounts
30- RUN --mount=type=cache,target=/var/cache/apt,id=apt-cache-${TARGETPLATFORM} \
30+ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked,id=apt-cache-${TARGETPLATFORM} \
31+ --mount=type=cache,target=/var/lib/apt,sharing=locked,id=apt-cache-${TARGETPLATFORM} \
3132 apt-get update && \
3233 apt-get install -y --no-install-recommends \
3334 libxml2-dev \
@@ -62,7 +63,8 @@ ENV PATH="/app/.venv/bin:$PATH"
6263
6364# Install only essential runtime system dependencies
6465ARG TARGETPLATFORM
65- RUN --mount=type=cache,target=/var/cache/apt,id=apt-cache-${TARGETPLATFORM} \
66+ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked,id=apt-cache-${TARGETPLATFORM} \
67+ --mount=type=cache,target=/var/lib/apt,sharing=locked,id=apt-cache-${TARGETPLATFORM} \
6668 apt-get update && \
6769 apt-get install -y --no-install-recommends \
6870 libxml2 \
You can’t perform that action at this time.
0 commit comments