Files
book-comic-library/frontend/Dockerfile.dev
T
XingfenD c2aae7e4e0
CI / backend (push) Canceled after 0s
CI / frontend (push) Canceled after 0s
fix(frontend): copy .npmrc into docker builds, use glibc build stage
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.
2026-09-16 23:45:12 +08:00

7 lines
182 B
Docker

FROM node:22 AS dev
WORKDIR /app
COPY frontend/package.json frontend/package-lock.json frontend/.npmrc ./
RUN npm ci
EXPOSE 5173
CMD ["npm", "run", "dev", "--", "--host", "0.0.0.0"]