Spaces:
Sleeping
Sleeping
Yarik
commited on
Commit
·
9f3522a
1
Parent(s):
065c08d
update 2 app.py
Browse files- Dockerfile +5 -6
Dockerfile
CHANGED
@@ -16,13 +16,12 @@ COPY . .
|
|
16 |
|
17 |
# Set environment variable for Hugging Face cache directory
|
18 |
ENV HF_HOME=/app/.cache
|
|
|
|
|
19 |
|
20 |
-
# Create
|
21 |
-
RUN mkdir -p /app
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
|
27 |
# Expose the port
|
28 |
EXPOSE 7860
|
|
|
16 |
|
17 |
# Set environment variable for Hugging Face cache directory
|
18 |
ENV HF_HOME=/app/.cache
|
19 |
+
ENV STANZA_RESOURCES_DIR=/app/stanza_resources
|
20 |
+
ENV MODEL_DIR=/app/model
|
21 |
|
22 |
+
# Create necessary directories and set permissions
|
23 |
+
RUN mkdir -p /app/.cache /app/stanza_resources /app/model && \
|
24 |
+
chmod -R 777 /app/.cache /app/stanza_resources /app/model
|
|
|
|
|
|
|
25 |
|
26 |
# Expose the port
|
27 |
EXPOSE 7860
|