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

chore: Update Dockerfile to improve build process and upgrade pip

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -5
Dockerfile CHANGED
@@ -3,12 +3,12 @@
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
 
@@ -16,7 +16,7 @@ RUN ls -la
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
20
 
21
  # Expose the port the app runs on
22
  EXPOSE 7860
 
3
 
4
  FROM tiangolo/uvicorn-gunicorn:python3.10-slim
5
 
6
+ # Set the working directory
 
 
 
7
  WORKDIR /app
8
 
9
+ # Copy the contents of the current directory to /app in the container
10
+ COPY . .
11
+
12
  # List the contents of the working directory to debug
13
  RUN ls -la
14
 
 
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
20
 
21
  # Expose the port the app runs on
22
  EXPOSE 7860