Spaces:
Sleeping
Sleeping
Commit
·
31c2392
1
Parent(s):
f79f681
Updated Dockerfile
Browse files- Dockerfile +3 -3
Dockerfile
CHANGED
|
@@ -3,11 +3,11 @@
|
|
| 3 |
|
| 4 |
FROM python:3.10.9
|
| 5 |
WORKDIR /code
|
|
|
|
| 6 |
|
| 7 |
-
|
|
|
|
| 8 |
|
| 9 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
| 10 |
|
| 11 |
-
COPY . .
|
| 12 |
-
|
| 13 |
CMD ["gunicorn", "-b", "0.0.0.0:7860", "-w", "4", "--threads", "2", "app:app"]
|
|
|
|
| 3 |
|
| 4 |
FROM python:3.10.9
|
| 5 |
WORKDIR /code
|
| 6 |
+
COPY . .
|
| 7 |
|
| 8 |
+
RUN mkdir /.cache
|
| 9 |
+
RUN chmod 777 /.cache
|
| 10 |
|
| 11 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
| 12 |
|
|
|
|
|
|
|
| 13 |
CMD ["gunicorn", "-b", "0.0.0.0:7860", "-w", "4", "--threads", "2", "app:app"]
|