Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +4 -1
Dockerfile
CHANGED
@@ -6,6 +6,9 @@ COPY ./requirements.txt /code/requirements.txt
|
|
6 |
|
7 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
8 |
|
|
|
|
|
|
|
9 |
COPY . .
|
10 |
|
11 |
-
CMD ["gunicorn", "-w", "4", "-b", "0.0.0.0:7860", "main:app"]
|
|
|
6 |
|
7 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
8 |
|
9 |
+
# Create cache directory with proper permissions
|
10 |
+
RUN mkdir -p /code/.cache/huggingface && chmod -R 777 /code/.cache
|
11 |
+
|
12 |
COPY . .
|
13 |
|
14 |
+
CMD ["gunicorn", "-w", "4", "-b", "0.0.0.0:7860", "main:app"]
|