Yarik commited on
Commit
9f3522a
·
1 Parent(s): 065c08d

update 2 app.py

Browse files
Files changed (1) hide show
  1. 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 cache directory and set permissions
21
- RUN mkdir -p /app/cache && chmod -R 777 /app/cache
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