Spaces:
Runtime error
Runtime error
Upload Dockerfile
Browse files- Dockerfile +3 -3
Dockerfile
CHANGED
@@ -28,10 +28,10 @@ EXPOSE 8000
|
|
28 |
# Define environment variables
|
29 |
ENV FLASK_APP=app.py
|
30 |
ENV FLASK_RUN_HOST=0.0.0.0
|
31 |
-
ENV
|
32 |
|
33 |
-
# Create the cache directory
|
34 |
-
RUN mkdir -p /app/.cache/huggingface/
|
35 |
|
36 |
# Run app.py when the container launches
|
37 |
CMD ["flask", "run", "--port=8000"]
|
|
|
28 |
# Define environment variables
|
29 |
ENV FLASK_APP=app.py
|
30 |
ENV FLASK_RUN_HOST=0.0.0.0
|
31 |
+
ENV HF_HOME=/app/.cache/huggingface
|
32 |
|
33 |
+
# Create the cache directory with appropriate permissions
|
34 |
+
RUN mkdir -p /app/.cache/huggingface && chmod -R 777 /app/.cache/huggingface
|
35 |
|
36 |
# Run app.py when the container launches
|
37 |
CMD ["flask", "run", "--port=8000"]
|