chore: Change NODE_ENV to development and update npm command in Dockerfile for improved build process
Publish Fast Tabler Docker image / build-and-push-fast (push) Failing after 3m41s

This commit is contained in:
2025-08-08 09:04:15 +07:00
parent 9d6cef6f9b
commit fd9f598f95
+3 -3
View File
@@ -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