File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -10,13 +10,13 @@ WORKDIR /code
10
10
COPY ./Frontend/ecommerce_inventory/ /code/Frontend/ecommerce_inventory/
11
11
12
12
# # Install frontend dependencies
13
- # RUN npm install
13
+ RUN npm install
14
14
15
15
# # Copy frontend source code
16
16
# COPY ./Frontend/ecommerce_inventory ./
17
17
18
18
# # Build frontend (adjust this based on your React build process)
19
- # RUN npm run build
19
+ RUN npm run build
20
20
21
21
# Stage 2: Build Django backend
22
22
FROM python:3.11.0
@@ -32,11 +32,12 @@ WORKDIR /code
32
32
# COPY ./Backend/EcommerceInventory/requirements.txt /code/
33
33
34
34
# Copy built frontend to Django static files directory
35
- # COPY --from=build-stage /app/frontend/build /code/static/
36
35
37
36
# Copy Django project files
38
37
COPY ./Backend/EcommerceInventory /code/Backend/EcommerceInventory/
38
+
39
39
RUN pip install -r ./Backend/EcommerceInventory/requirements.txt
40
+ COPY --from=build-stage ./code/Frontend/ecommerce_inventory/build ./Backend/EcommerceInventory/static/
40
41
41
42
# Collect static files
42
43
RUN python ./Backend/EcommerceInventory/manage.py migrate
You can’t perform that action at this time.
0 commit comments