Skip to content

Commit a54893f

Browse files
Update Dockerfile
1 parent 56448e4 commit a54893f

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

Dockerfile

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,18 @@ WORKDIR /app
44

55
RUN apt update -y && apt install -y git build-essential
66

7-
# Clone the repository into a subdirectory
8-
RUN git clone https://github.com/SkyTheCodeMaster/upc-api.git ./upc-api
7+
# Clone the repository
8+
RUN git clone https://github.com/SkyTheCodeMaster/upc-api.git /app/upc-api
99

10-
# Copy the contents of the current directory into the cloned repo
11-
COPY . ./upc-api/
10+
# Copy the current directory into the cloned repo
11+
COPY . /app/upc-api/
1212

13+
# Install requirements
1314
RUN pip install --upgrade pip
1415
RUN pip install --no-cache-dir -r ./upc-api/src/requirements.txt
1516

1617
# Verify the contents of the directory
17-
CMD ["bash", "-c", "ls -R ./upc-api"]
18+
RUN ls -R ./upc-api
1819

1920
# Run the main script
20-
CMD ["python", "./upc-api/src/main.py"]
21+
CMD ["python", "/app/upc-api/src/main.py"]

0 commit comments

Comments
 (0)