Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse filesCreate cache directory and set permissions
- Dockerfile +3 -0
Dockerfile
CHANGED
|
@@ -2,6 +2,9 @@ FROM python:3.10-slim
|
|
| 2 |
|
| 3 |
WORKDIR /code
|
| 4 |
|
|
|
|
|
|
|
|
|
|
| 5 |
COPY ./requirements.txt /code/requirements.txt
|
| 6 |
|
| 7 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
|
|
|
| 2 |
|
| 3 |
WORKDIR /code
|
| 4 |
|
| 5 |
+
# Create cache directory and set permissions
|
| 6 |
+
RUN mkdir -p /.cache && chmod 777 /.cache
|
| 7 |
+
|
| 8 |
COPY ./requirements.txt /code/requirements.txt
|
| 9 |
|
| 10 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|