Skip to content

Commit 0726852

Browse files
committed
Deploy CI CD on Test Server
1 parent 026948b commit 0726852

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

Dockerfile

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
# Stage 1: Build frontend
2-
FROM node:18 as build-stage
2+
# FROM node:18 as build-stage
33

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

77

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 ./
1010

11-
# Install frontend dependencies
12-
RUN npm install
11+
# # Install frontend dependencies
12+
# RUN npm install
1313

14-
# Copy frontend source code
15-
COPY ./Frontend/ecommerce_inventory ./
14+
# # Copy frontend source code
15+
# COPY ./Frontend/ecommerce_inventory ./
1616

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
1919

2020
# Stage 2: Build Django backend
2121
FROM python:3.11.0
@@ -32,7 +32,7 @@ COPY ./Backend/EcommerceInventory/requirements.txt /code/
3232
RUN pip install -r requirements.txt
3333

3434
# 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/
3636

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

0 commit comments

Comments
 (0)