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
Publish Fast Tabler Docker image / build-and-push-fast (push) Failing after 3m41s
This commit is contained in:
+3
-3
@@ -4,14 +4,14 @@
|
|||||||
FROM node:20-bookworm-slim AS frontend-builder
|
FROM node:20-bookworm-slim AS frontend-builder
|
||||||
WORKDIR /app/frontend
|
WORKDIR /app/frontend
|
||||||
|
|
||||||
ENV NODE_ENV=production
|
ENV NODE_ENV=development
|
||||||
RUN npm config set registry https://registry.npmjs.org/ \
|
RUN npm config set registry https://registry.npmjs.org/ \
|
||||||
&& npm config set fetch-timeout 300000 \
|
&& npm config set fetch-timeout 300000 \
|
||||||
&& npm config set fetch-retry-mintimeout 20000 \
|
&& npm config set fetch-retry-mintimeout 20000 \
|
||||||
&& npm config set fetch-retry-maxtimeout 120000
|
&& npm config set fetch-retry-maxtimeout 120000
|
||||||
|
|
||||||
COPY frontend/package*.json ./
|
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/src/ ./src/
|
||||||
COPY frontend/public/ ./public/
|
COPY frontend/public/ ./public/
|
||||||
@@ -21,7 +21,7 @@ COPY frontend/eslint.config.js ./
|
|||||||
|
|
||||||
ENV ROLLUP_SKIP_NODEJS_NATIVE=1
|
ENV ROLLUP_SKIP_NODEJS_NATIVE=1
|
||||||
ENV ROLLUP_NO_NATIVE=1
|
ENV ROLLUP_NO_NATIVE=1
|
||||||
RUN npx vite build
|
RUN npm run build
|
||||||
|
|
||||||
# Stage 2: Install backend deps on glibc
|
# Stage 2: Install backend deps on glibc
|
||||||
FROM node:20-bookworm-slim AS backend-builder
|
FROM node:20-bookworm-slim AS backend-builder
|
||||||
|
|||||||
Reference in New Issue
Block a user