muhtasham commited on
Commit
c703b31
·
1 Parent(s): f027036

chore: Update Dockerfile to improve build process and upgrade pip

Browse files
Files changed (1) hide show
  1. Dockerfile +10 -2
Dockerfile CHANGED
@@ -3,9 +3,17 @@
3
 
4
  FROM tiangolo/uvicorn-gunicorn:python3.10-slim
5
 
6
- COPY . .
 
7
 
8
- WORKDIR /
 
 
 
 
 
 
 
9
 
10
  # Install requirements.txt
11
  RUN pip install --no-cache-dir --upgrade -r /requirements.txt
 
3
 
4
  FROM tiangolo/uvicorn-gunicorn:python3.10-slim
5
 
6
+ # Copy the current directory contents into the container at /app
7
+ COPY . /app
8
 
9
+ # Set the working directory to /app
10
+ WORKDIR /app
11
+
12
+ # List the contents of the working directory to debug
13
+ RUN ls -la
14
+
15
+ # Upgrade pip
16
+ RUN pip install --no-cache-dir --upgrade pip
17
 
18
  # Install requirements.txt
19
  RUN pip install --no-cache-dir --upgrade -r /requirements.txt