sohan-ai commited on
Commit
4312891
1 Parent(s): 5120110

Upload Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -4
Dockerfile CHANGED
@@ -13,11 +13,11 @@ RUN pip install --no-cache-dir -r requirements.txt
13
  # Copy the rest of the application into the container at /app
14
  COPY . /app
15
 
16
- # Create a cache directory for transformers
17
- RUN mkdir -p /app/cache
18
 
19
- # Set environment variable for transformers cache
20
- ENV TRANSFORMERS_CACHE=/app/cache
21
 
22
  # Expose port 7860
23
  EXPOSE 7860
 
13
  # Copy the rest of the application into the container at /app
14
  COPY . /app
15
 
16
+ # Create a cache directory for Hugging Face
17
+ RUN mkdir -p /app/hf_cache
18
 
19
+ # Set environment variable for Hugging Face cache
20
+ ENV HF_HOME=/app/hf_cache
21
 
22
  # Expose port 7860
23
  EXPOSE 7860