CI: combine npm install+build in single RUN step
Deploy Dashboard / deploy (push) Failing after 2m42s

This commit is contained in:
Gan, Jimmy
2026-02-25 04:25:49 +08:00
parent 7b9747f7b7
commit f8c22a88f7
+1 -2
View File
@@ -2,9 +2,8 @@
FROM node:20-alpine AS frontend FROM node:20-alpine AS frontend
WORKDIR /build WORKDIR /build
COPY frontend/package.json frontend/package-lock.json* ./ COPY frontend/package.json frontend/package-lock.json* ./
RUN npm install --registry=https://registry.npmmirror.com
COPY frontend/ ./ COPY frontend/ ./
RUN npm run build RUN npm install --registry=https://registry.npmmirror.com && npm run build
# Stage 2: Python runtime # Stage 2: Python runtime
FROM python:3.12-slim FROM python:3.12-slim