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
+1 -1
View File
@@ -1,6 +1,6 @@
FROM node:22 AS dev
WORKDIR /app
COPY frontend/package.json frontend/package-lock.json ./
COPY frontend/package.json frontend/package-lock.json frontend/.npmrc ./
RUN npm ci
EXPOSE 5173
CMD ["npm", "run", "dev", "--", "--host", "0.0.0.0"]