We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 806fc04 commit 56448e4Copy full SHA for 56448e4
1 file changed
Dockerfile
@@ -4,12 +4,17 @@ WORKDIR /app
4
5
RUN apt update -y && apt install -y git build-essential
6
7
-RUN git clone https://github.com/SkyTheCodeMaster/upc-api.git /app/
+# Clone the repository into a subdirectory
8
+RUN git clone https://github.com/SkyTheCodeMaster/upc-api.git ./upc-api
9
-COPY . .
10
+# Copy the contents of the current directory into the cloned repo
11
+COPY . ./upc-api/
12
13
RUN pip install --upgrade pip
-RUN pip install --no-cache-dir -r src/requirements.txt
14
+RUN pip install --no-cache-dir -r ./upc-api/src/requirements.txt
15
-CMD ["bash", "-c", "ls"]
-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