Compare commits

...

1 Commits

Author SHA1 Message Date
bb4610f49d Docker: enable BuildKit cache for npm ci
All checks were successful
CI / build-and-anchors (push) Successful in 1m32s
SMOKE / smoke (push) Successful in 10s
2026-02-12 11:20:27 +01:00

View File

@@ -7,16 +7,18 @@ WORKDIR /app
ENV npm_config_update_notifier=false \
npm_config_audit=false \
npm_config_fund=false \
npm_config_progress=false
npm_config_progress=false \
ASTRO_TELEMETRY_DISABLED=1
# (Optionnel mais propre) git + certificats
RUN apt-get -o Acquire::Retries=5 -o Acquire::ForceIPv4=true update \
&& apt-get install -y --no-install-recommends ca-certificates git \
&& rm -rf /var/lib/apt/lists/*
&& rm -rf /var/lib/apt/lists/*
# Déps dabord (cache Docker)
COPY package.json package-lock.json ./
RUN npm ci --no-audit --no-fund
RUN --mount=type=cache,target=/root/.npm \
npm ci --no-audit --no-fund
# Sources
COPY . .