File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,17 +4,18 @@ WORKDIR /app
44
55RUN 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
1314RUN pip install --upgrade pip
1415RUN 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" ]
You can’t perform that action at this time.
0 commit comments