File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 2
2
FROM node:18 as build-stage
3
3
4
4
# Set working directory for frontend
5
- WORKDIR /app
5
+ WORKDIR /code
6
6
7
7
# Copy frontend package files
8
- COPY ./Frontend/ecommerce_inventory/package.json ./Frontend/ecommerce_inventory/package-lock.json /app /
8
+ COPY ./Frontend/ecommerce_inventory/package.json ./Frontend/ecommerce_inventory/package-lock.json /code /
9
9
10
10
# List contents (optional, for verification)
11
- RUN ls -l /app
11
+ RUN ls -l /code
12
12
13
13
# Install frontend dependencies
14
14
RUN npm install
15
15
16
16
# Copy frontend source code
17
- COPY ./Frontend/ecommerce_inventory /app /
18
- COPY ./Frontend/ /app /Frontend/
17
+ COPY ./Frontend/ecommerce_inventory /code /
18
+ COPY ./Frontend/ /code /Frontend/
19
19
20
20
# List contents (optional, for verification)
21
- RUN ls -l /app
21
+ RUN ls -l /code
22
22
23
23
# Build frontend (adjust this based on your React build process)
24
24
RUN npm run build
You can’t perform that action at this time.
0 commit comments