Fix Dockerfile on clean builds
This commit is contained in:
@@ -7,14 +7,11 @@ WORKDIR /app
|
|||||||
COPY backend/package*.json ./backend/
|
COPY backend/package*.json ./backend/
|
||||||
COPY frontend/package*.json ./frontend/
|
COPY frontend/package*.json ./frontend/
|
||||||
|
|
||||||
# Install dependencies
|
|
||||||
RUN cd backend && npm ci
|
|
||||||
RUN cd frontend && npm ci
|
|
||||||
|
|
||||||
# Copy source files
|
# Copy source files
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
# Build frontend and backend
|
# Build frontend and backend
|
||||||
|
RUN npm install
|
||||||
RUN npm run build --workspaces
|
RUN npm run build --workspaces
|
||||||
|
|
||||||
# Production stage
|
# Production stage
|
||||||
|
|||||||
Reference in New Issue
Block a user