chore: Update Dockerfile to improve build process and upgrade pip
Browse files- Dockerfile +10 -2
Dockerfile
CHANGED
@@ -3,9 +3,17 @@
|
|
3 |
|
4 |
FROM tiangolo/uvicorn-gunicorn:python3.10-slim
|
5 |
|
6 |
-
|
|
|
7 |
|
8 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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
|