Skip to content

Commit 56448e4

Browse files
Update Dockerfile
1 parent 806fc04 commit 56448e4

1 file changed

Lines changed: 10 additions & 5 deletions

File tree

Dockerfile

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,17 @@ WORKDIR /app
44

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

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

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

1113
RUN pip install --upgrade pip
12-
RUN pip install --no-cache-dir -r src/requirements.txt
14+
RUN pip install --no-cache-dir -r ./upc-api/src/requirements.txt
1315

14-
CMD ["bash", "-c", "ls"]
15-
CMD ["python", "src/main.py"]
16+
# Verify the contents of the directory
17+
CMD ["bash", "-c", "ls -R ./upc-api"]
18+
19+
# Run the main script
20+
CMD ["python", "./upc-api/src/main.py"]

0 commit comments

Comments
 (0)