Commit
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
# Stage 1: Build the React app (Frontend)
|
||||
FROM node:18-slim AS frontend-build
|
||||
WORKDIR /app
|
||||
COPY . .
|
||||
|
||||
# Copy frontend files
|
||||
COPY frontend/package*.json ./frontend/
|
||||
@@ -21,7 +20,7 @@ FROM node:18-slim AS backend
|
||||
WORKDIR /app
|
||||
|
||||
# Copy package.json to /app directory
|
||||
COPY backend/package*.json ./
|
||||
COPY frontend/package*.json ./
|
||||
RUN npm install
|
||||
|
||||
# Copy remaining backend files
|
||||
|
||||
Reference in New Issue
Block a user