Skip to content

Commit ab406e8

Browse files
committed
Deploy CI CD on Test Server
1 parent 5ca4de7 commit ab406e8

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

Dockerfile

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,21 @@
22
FROM node:18 as build-stage
33

44
# Set working directory for frontend
5-
WORKDIR /app/frontend
5+
# WORKDIR /app/frontend
66

7-
# Copy frontend package files
8-
COPY ./Frontend/ecommerce_inventory/package.json ./Frontend/ecommerce_inventory/package-lock.json ./
7+
# # Copy frontend package files
8+
# COPY ./Frontend/ecommerce_inventory/package.json ./Frontend/ecommerce_inventory/package-lock.json ./
99

10-
# Install frontend dependencies
11-
RUN npm install
10+
# # Install frontend dependencies
11+
# RUN npm install
1212

13-
# Copy frontend source code
14-
COPY ./Frontend/ecommerce_inventory ./
13+
# # Copy frontend source code
14+
# COPY ./Frontend/ecommerce_inventory ./
1515

16-
# Build frontend (adjust this based on your React build process)
17-
RUN npm run build
16+
# # Build frontend (adjust this based on your React build process)
17+
# RUN npm run build
1818

19-
# Stage 2: Build Django backend
19+
# # Stage 2: Build Django backend
2020
FROM python:3.11.0
2121

2222
# Set environment variables
@@ -31,7 +31,7 @@ COPY ./Backend/EcommerceInventory/requirements.txt /code/
3131
RUN pip install -r requirements.txt
3232

3333
# Copy built frontend to Django static files directory
34-
COPY --from=build-stage /app/frontend/build /code/static/
34+
# COPY --from=build-stage /app/frontend/build /code/static/
3535

3636
# Copy Django project files
3737
COPY ./Backend/EcommerceInventory /code/

0 commit comments

Comments
 (0)