fix(frontend): copy .npmrc into docker builds, use glibc build stage
CI / backend (push) Canceled after 0s
CI / frontend (push) Canceled after 0s

npm ci in the images ran without frontend/.npmrc, so the eslint 9/10 peer
conflict aborted it (legacy-peer-deps=true lives in .npmrc). The release
build stage also used alpine/musl, where npm ci skipped the rolldown
native bindings and vite build failed; build on glibc like dev instead.
This commit is contained in:
2026-09-16 23:45:12 +08:00
parent ef57b194f4
commit c2aae7e4e0
3 changed files with 6 additions and 3 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
FROM node:22-alpine AS build
FROM node:22 AS build
WORKDIR /src
COPY frontend/package.json frontend/package-lock.json ./
COPY frontend/package.json frontend/package-lock.json frontend/.npmrc ./
RUN npm ci
COPY frontend/ ./
RUN npm run build