Update Dockerfile
Browse files- Dockerfile +4 -4
Dockerfile
CHANGED
|
@@ -13,10 +13,10 @@ ENV FLASK_APP=app.main
|
|
| 13 |
ENV FLASK_RUN_HOST=0.0.0.0
|
| 14 |
ENV FLASK_RUN_PORT=7860
|
| 15 |
|
| 16 |
-
# Set the
|
| 17 |
-
ENV
|
| 18 |
|
| 19 |
-
# Create the directory for
|
| 20 |
-
RUN mkdir -p /code/.
|
| 21 |
|
| 22 |
CMD ["flask", "run"]
|
|
|
|
| 13 |
ENV FLASK_RUN_HOST=0.0.0.0
|
| 14 |
ENV FLASK_RUN_PORT=7860
|
| 15 |
|
| 16 |
+
# Set the Hugging Face cache directory within the container
|
| 17 |
+
ENV HF_HOME=/code/.huggingface
|
| 18 |
|
| 19 |
+
# Create the directory for Hugging Face cache and ensure proper permissions
|
| 20 |
+
RUN mkdir -p /code/.huggingface && chmod -R 777 /code/.huggingface
|
| 21 |
|
| 22 |
CMD ["flask", "run"]
|