Deepanshu7284 commited on
Commit
412be30
·
1 Parent(s): 6e71435

Create cache directory with correct permissions

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -0
Dockerfile CHANGED
@@ -15,6 +15,7 @@ COPY . .
15
  EXPOSE 7860
16
 
17
  # Set a writable cache directory for Hugging Face models
 
18
  ENV HUGGING_FACE_HUB_CACHE="/app/cache"
19
  ENV SENTENCE_TRANSFORMERS_HOME="/app/cache"
20
 
 
15
  EXPOSE 7860
16
 
17
  # Set a writable cache directory for Hugging Face models
18
+ RUN mkdir -p /app/cache && chmod -R 777 /app/cache
19
  ENV HUGGING_FACE_HUB_CACHE="/app/cache"
20
  ENV SENTENCE_TRANSFORMERS_HOME="/app/cache"
21