whtet commited on
Commit
8c60dc7
·
verified ·
1 Parent(s): 76ecd6c

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -2
Dockerfile CHANGED
@@ -5,10 +5,10 @@ FROM python:3.10
5
  WORKDIR /app
6
 
7
  # Create a cache directory for Hugging Face models
8
- RUN mkdir -p /app/cache
9
 
10
  # Set environment variable for cache
11
- ENV TRANSFORMERS_CACHE=/app/cache
12
 
13
  # Copy the dependencies file
14
  COPY requirements.txt .
 
5
  WORKDIR /app
6
 
7
  # Create a cache directory for Hugging Face models
8
+ RUN mkdir -p /app/cache && chmod -R 777 /app/cache
9
 
10
  # Set environment variable for cache
11
+ ENV HF_HOME=/app/cache
12
 
13
  # Copy the dependencies file
14
  COPY requirements.txt .