Fix Dockerfile on clean builds

This commit is contained in:
2025-02-23 19:32:32 -08:00
parent e7bb991df7
commit 5ca056dbc8

View File

@@ -7,14 +7,11 @@ WORKDIR /app
COPY backend/package*.json ./backend/
COPY frontend/package*.json ./frontend/
# Install dependencies
RUN cd backend && npm ci
RUN cd frontend && npm ci
# Copy source files
COPY . .
# Build frontend and backend
RUN npm install
RUN npm run build --workspaces
# Production stage