1
1
# Stage 1: Build frontend
2
- FROM node:18 as build-stage
2
+ # FROM node:18 as build-stage
3
3
4
- # Set working directory for frontend
5
- WORKDIR /app/frontend
4
+ # # Set working directory for frontend
5
+ # WORKDIR /app/frontend
6
6
7
7
8
- # Copy frontend package files
9
- COPY ./Frontend/ecommerce_inventory/package.json ./Frontend/ecommerce_inventory/package-lock.json ./
8
+ # # Copy frontend package files
9
+ # COPY ./Frontend/ecommerce_inventory/package.json ./Frontend/ecommerce_inventory/package-lock.json ./
10
10
11
- # Install frontend dependencies
12
- RUN npm install
11
+ # # Install frontend dependencies
12
+ # RUN npm install
13
13
14
- # Copy frontend source code
15
- COPY ./Frontend/ecommerce_inventory ./
14
+ # # Copy frontend source code
15
+ # COPY ./Frontend/ecommerce_inventory ./
16
16
17
- # Build frontend (adjust this based on your React build process)
18
- RUN npm run build
17
+ # # Build frontend (adjust this based on your React build process)
18
+ # RUN npm run build
19
19
20
20
# Stage 2: Build Django backend
21
21
FROM python:3.11.0
@@ -32,7 +32,7 @@ COPY ./Backend/EcommerceInventory/requirements.txt /code/
32
32
RUN pip install -r requirements.txt
33
33
34
34
# Copy built frontend to Django static files directory
35
- COPY --from=build-stage /app/frontend/build /code/static/
35
+ # COPY --from=build-stage /app/frontend/build /code/static/
36
36
37
37
# Copy Django project files
38
38
COPY ./Backend/EcommerceInventory /code/
0 commit comments