Skip to content

Commit 20a0a4e

Browse files
fix: install all dependencies in frontend builder to include vite (was skipping devDependencies)
1 parent c5dcae8 commit 20a0a4e

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ FROM node:20-alpine AS frontend-builder
22

33
WORKDIR /app
44

5-
# Copy root package files
5+
# Copy root package files and install ALL dependencies (including devDependencies for vite)
66
COPY package*.json ./
7-
RUN npm install
7+
RUN npm ci
88

99
# Copy necessary files for build
1010
COPY client/ ./client/
@@ -23,9 +23,9 @@ FROM node:20-alpine
2323

2424
WORKDIR /app
2525

26-
# Copy server package files and install dependencies
26+
# Copy server package files and install production dependencies only
2727
COPY server/package*.json ./
28-
RUN npm install --production
28+
RUN npm ci --production
2929

3030
# Copy shared directory and server source
3131
COPY shared/ ./shared/

0 commit comments

Comments
 (0)