Fix: remove --only=production flag so devDependencies (vite, svelte plugin) are installed

This commit is contained in:
David Alvarez
2026-05-23 18:28:05 +02:00
parent aad4ec21a6
commit df5ce4f127
+1 -1
View File
@@ -4,7 +4,7 @@
FROM node:20-bookworm AS frontend
WORKDIR /build
COPY frontend/package.json frontend/package-lock.json ./
RUN npm ci --only=production 2>/dev/null || npm install --legacy-peer-deps
RUN npm ci 2>/dev/null || npm install --legacy-peer-deps
COPY frontend/ ./
RUN npx vite build