Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +8 -3
Dockerfile
CHANGED
|
@@ -1,7 +1,12 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
# Use the base image from your Docker container
|
| 4 |
FROM trcoot/cpu-casuallm:latest
|
| 5 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
# Start the application (modify this based on your app's entry point)
|
| 7 |
-
CMD ["python", "app.py"]
|
|
|
|
|
|
|
|
|
|
| 1 |
# Use the base image from your Docker container
|
| 2 |
FROM trcoot/cpu-casuallm:latest
|
| 3 |
|
| 4 |
+
# Set the environment variable for the Hugging Face cache directory
|
| 5 |
+
ENV HF_HOME=/app/.cache
|
| 6 |
+
|
| 7 |
+
# Create the cache directory and give the appropriate permissions
|
| 8 |
+
RUN mkdir -p /app/.cache && chmod 777 /app/.cache
|
| 9 |
+
RUN mkdir -p /app/gradio_flagged && chmod 777 /app/gradio_flagged
|
| 10 |
+
|
| 11 |
# Start the application (modify this based on your app's entry point)
|
| 12 |
+
CMD ["python", "app.py"]
|