Fix: remove --only=production flag so devDependencies (vite, svelte plugin) are installed
This commit is contained in:
+1
-1
@@ -4,7 +4,7 @@
|
|||||||
FROM node:20-bookworm AS frontend
|
FROM node:20-bookworm AS frontend
|
||||||
WORKDIR /build
|
WORKDIR /build
|
||||||
COPY frontend/package.json frontend/package-lock.json ./
|
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/ ./
|
COPY frontend/ ./
|
||||||
RUN npx vite build
|
RUN npx vite build
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user