From fbea75fac63e69b8aece248224c3f8f570f78503 Mon Sep 17 00:00:00 2001 From: Tony James Date: Sun, 31 May 2026 21:55:55 +0100 Subject: [PATCH] fix(docker): drop shared npm cache mount and skip husky postinstall --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 7089ba6..b924516 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,11 +9,11 @@ WORKDIR /app # Root deps COPY package.json package-lock.json* ./ -RUN --mount=type=cache,target=/root/.npm npm ci --no-audit --no-fund +RUN npm ci --no-audit --no-fund --ignore-scripts # Client deps COPY client/package.json client/package-lock.json* ./client/ -RUN --mount=type=cache,target=/root/.npm npm --prefix client ci --no-audit --no-fund +RUN npm --prefix client ci --no-audit --no-fund --ignore-scripts # Source COPY tsconfig.json ./ @@ -33,7 +33,7 @@ WORKDIR /app # Only ship the prod deps + built artefacts COPY package.json package-lock.json* ./ -RUN --mount=type=cache,target=/root/.npm npm ci --omit=dev --no-audit --no-fund \ +RUN npm ci --omit=dev --no-audit --no-fund --ignore-scripts \ && npm cache clean --force COPY --from=builder /app/dist ./dist