Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +3 -1
Dockerfile
CHANGED
|
@@ -1,9 +1,11 @@
|
|
| 1 |
FROM python:3.9-slim
|
| 2 |
|
|
|
|
|
|
|
|
|
|
| 3 |
WORKDIR /app
|
| 4 |
COPY . .
|
| 5 |
|
| 6 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 7 |
|
| 8 |
-
EXPOSE 8000
|
| 9 |
CMD ["python", "app.py"]
|
|
|
|
| 1 |
FROM python:3.9-slim
|
| 2 |
|
| 3 |
+
# Create cache directory and set permissions
|
| 4 |
+
RUN mkdir -p /tmp/huggingface_cache && chmod 777 /tmp/huggingface_cache
|
| 5 |
+
|
| 6 |
WORKDIR /app
|
| 7 |
COPY . .
|
| 8 |
|
| 9 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 10 |
|
|
|
|
| 11 |
CMD ["python", "app.py"]
|