Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +6 -2
Dockerfile
CHANGED
|
@@ -2,7 +2,11 @@ FROM python:3.9
|
|
| 2 |
|
| 3 |
WORKDIR /code
|
| 4 |
|
| 5 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
|
| 7 |
COPY ./requirements.txt /code/requirements.txt
|
| 8 |
|
|
@@ -10,4 +14,4 @@ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
|
| 10 |
|
| 11 |
COPY . .
|
| 12 |
|
| 13 |
-
CMD ["gunicorn", "-b", "0.0.0.0:7860", "app:app"]
|
|
|
|
| 2 |
|
| 3 |
WORKDIR /code
|
| 4 |
|
| 5 |
+
# Create a directory for the cache
|
| 6 |
+
RUN mkdir -p /.cache
|
| 7 |
+
|
| 8 |
+
# Change the ownership and permissions of the cache directory
|
| 9 |
+
RUN chmod -R 777 /.cache
|
| 10 |
|
| 11 |
COPY ./requirements.txt /code/requirements.txt
|
| 12 |
|
|
|
|
| 14 |
|
| 15 |
COPY . .
|
| 16 |
|
| 17 |
+
CMD ["gunicorn", "-b", "0.0.0.0:7860", "app:app"]
|