There was an error while loading. Please reload this page.
1 parent c5dcae8 commit 20a0a4eCopy full SHA for 20a0a4e
1 file changed
Dockerfile
@@ -2,9 +2,9 @@ FROM node:20-alpine AS frontend-builder
2
3
WORKDIR /app
4
5
-# Copy root package files
+# Copy root package files and install ALL dependencies (including devDependencies for vite)
6
COPY package*.json ./
7
-RUN npm install
+RUN npm ci
8
9
# Copy necessary files for build
10
COPY client/ ./client/
@@ -23,9 +23,9 @@ FROM node:20-alpine
23
24
25
26
-# Copy server package files and install dependencies
+# Copy server package files and install production dependencies only
27
COPY server/package*.json ./
28
-RUN npm install --production
+RUN npm ci --production
29
30
# Copy shared directory and server source
31
COPY shared/ ./shared/
0 commit comments