Skip to content

Commit 64f3dd9

Browse files
committed
Deploy CI CD on Test Server
1 parent 5927d50 commit 64f3dd9

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Dockerfile

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

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

77
# 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/
99

1010
# List contents (optional, for verification)
11-
RUN ls -l /app
11+
RUN ls -l /code
1212

1313
# Install frontend dependencies
1414
RUN npm install
1515

1616
# 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/
1919

2020
# List contents (optional, for verification)
21-
RUN ls -l /app
21+
RUN ls -l /code
2222

2323
# Build frontend (adjust this based on your React build process)
2424
RUN npm run build

0 commit comments

Comments
 (0)