Maksym Batiuk commited on
Commit
a8bd93e
·
1 Parent(s): e66a368

fix another annoying error

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -4
Dockerfile CHANGED
@@ -36,12 +36,11 @@ ENV TOKENIZERS_PARALLELISM=false
36
  ENV TORCH_CPP_LOG_LEVEL=ERROR
37
  ENV PYTORCH_DISABLE_SYSTEM_MONITORING=1
38
 
39
- # Set a writable cache directory for Hugging Face
40
- ENV TRANSFORMERS_CACHE=/app/cache
41
  ENV HF_HOME=/app/cache
42
 
43
- # Create the cache directory
44
- RUN mkdir -p /app/cache
45
 
46
  # Expose the app's default port
47
  EXPOSE 7860
 
36
  ENV TORCH_CPP_LOG_LEVEL=ERROR
37
  ENV PYTORCH_DISABLE_SYSTEM_MONITORING=1
38
 
39
+ # Set writable cache directory for Hugging Face
 
40
  ENV HF_HOME=/app/cache
41
 
42
+ # Create and set permissions for the cache directory
43
+ RUN mkdir -p /app/cache && chmod -R 777 /app/cache
44
 
45
  # Expose the app's default port
46
  EXPOSE 7860