diff --git a/frontend/Dockerfile b/frontend/Dockerfile index 2c1cce7..9c1ec7e 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -2,9 +2,12 @@ FROM docker.io/node:20-alpine AS builder WORKDIR /app +# Clean any existing cache before starting +RUN npm cache clean --force + # install deps (needs dev deps for build) COPY package*.json ./ -RUN npm ci && npm cache clean --force +RUN npm cache clean --force && npm install --prefer-offline --no-audit --no-fund && npm cache clean --force # app source COPY . .