Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +3 -2
Dockerfile
CHANGED
|
@@ -7,8 +7,9 @@ WORKDIR /code
|
|
| 7 |
# Copy the requirements file
|
| 8 |
COPY ./requirements.txt /code/requirements.txt
|
| 9 |
|
| 10 |
-
# Update pip and install
|
| 11 |
-
RUN pip install --no-cache-dir --upgrade pip &&
|
|
|
|
| 12 |
|
| 13 |
# Set up a new user named "user" with user ID 1000
|
| 14 |
RUN useradd -m -u 1000 user
|
|
|
|
| 7 |
# Copy the requirements file
|
| 8 |
COPY ./requirements.txt /code/requirements.txt
|
| 9 |
|
| 10 |
+
# Update pip and install `packaging` first to avoid dependency issues
|
| 11 |
+
RUN pip install --no-cache-dir --upgrade pip packaging && \
|
| 12 |
+
pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
| 13 |
|
| 14 |
# Set up a new user named "user" with user ID 1000
|
| 15 |
RUN useradd -m -u 1000 user
|