doublelotus commited on
Commit
26155cf
·
1 Parent(s): d6e00ed
Files changed (1) hide show
  1. Dockerfile +3 -4
Dockerfile CHANGED
@@ -8,13 +8,12 @@ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
8
 
9
  RUN apt-get update && apt-get install ffmpeg libsm6 libxext6 -y
10
 
11
- # Create the cache directory
12
- RUN mkdir -p /code/transformers_cache
13
 
14
  # Set the TRANSFORMERS_CACHE environment variable
15
  ENV TRANSFORMERS_CACHE=/code/transformers_cache
16
- ENV HF_HOME=/code/transformers_cache
17
 
18
  COPY . .
19
 
20
- CMD ["gunicorn", "-b", "0.0.0.0:7860", "main:app"]
 
8
 
9
  RUN apt-get update && apt-get install ffmpeg libsm6 libxext6 -y
10
 
11
+ # Create the cache directory and set permissions
12
+ RUN mkdir -p /code/transformers_cache && chmod -R 777 /code/transformers_cache
13
 
14
  # Set the TRANSFORMERS_CACHE environment variable
15
  ENV TRANSFORMERS_CACHE=/code/transformers_cache
 
16
 
17
  COPY . .
18
 
19
+ CMD ["gunicorn", "-b", "0.0.0.0:7860", "main:app"]