cigol123 commited on
Commit
48a4264
·
verified ·
1 Parent(s): ea16add

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -0
Dockerfile CHANGED
@@ -4,6 +4,7 @@ FROM python:3.9-slim
4
  # Set environment variables for Hugging Face cache
5
  ENV TRANSFORMERS_CACHE=/tmp/.cache
6
  ENV HF_DATASETS_CACHE=/tmp/.cache
 
7
 
8
  # Create the cache directory and set permissions
9
  RUN mkdir -p /tmp/.cache && chmod -R 777 /tmp/.cache
 
4
  # Set environment variables for Hugging Face cache
5
  ENV TRANSFORMERS_CACHE=/tmp/.cache
6
  ENV HF_DATASETS_CACHE=/tmp/.cache
7
+ ENV TORCH_HOME=/tmp/.cache # Set PyTorch cache directory
8
 
9
  # Create the cache directory and set permissions
10
  RUN mkdir -p /tmp/.cache && chmod -R 777 /tmp/.cache