diff --git a/Dockerfile.fast b/Dockerfile.fast index a144829..e963b72 100644 --- a/Dockerfile.fast +++ b/Dockerfile.fast @@ -4,14 +4,14 @@ FROM node:20-bookworm-slim AS frontend-builder WORKDIR /app/frontend -ENV NODE_ENV=production +ENV NODE_ENV=development RUN npm config set registry https://registry.npmjs.org/ \ && npm config set fetch-timeout 300000 \ && npm config set fetch-retry-mintimeout 20000 \ && npm config set fetch-retry-maxtimeout 120000 COPY frontend/package*.json ./ -RUN --mount=type=cache,target=/root/.npm npm install --no-audit --no-fund +RUN --mount=type=cache,target=/root/.npm npm ci --no-audit --no-fund COPY frontend/src/ ./src/ COPY frontend/public/ ./public/ @@ -21,7 +21,7 @@ COPY frontend/eslint.config.js ./ ENV ROLLUP_SKIP_NODEJS_NATIVE=1 ENV ROLLUP_NO_NATIVE=1 -RUN npx vite build +RUN npm run build # Stage 2: Install backend deps on glibc FROM node:20-bookworm-slim AS backend-builder