Update Dockerfile
Browse files- Dockerfile +6 -1
Dockerfile
CHANGED
@@ -13,5 +13,10 @@ ENV FLASK_APP=app.main
|
|
13 |
ENV FLASK_RUN_HOST=0.0.0.0
|
14 |
ENV FLASK_RUN_PORT=7860
|
15 |
|
16 |
-
#
|
|
|
|
|
|
|
|
|
|
|
17 |
CMD ["flask", "run"]
|
|
|
13 |
ENV FLASK_RUN_HOST=0.0.0.0
|
14 |
ENV FLASK_RUN_PORT=7860
|
15 |
|
16 |
+
# Set the Transformers cache directory within the container
|
17 |
+
ENV TRANSFORMERS_CACHE=/code/.transformers_cache
|
18 |
+
|
19 |
+
# Create the directory for Transformers cache
|
20 |
+
RUN mkdir -p /code/.transformers_cache
|
21 |
+
|
22 |
CMD ["flask", "run"]
|