Leon4gr45 commited on
Commit
7e2c73d
·
verified ·
1 Parent(s): 302a3ec

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -0
Dockerfile CHANGED
@@ -6,9 +6,14 @@ COPY requirements.txt requirements.txt
6
  RUN pip install --no-cache-dir --default-timeout=100 --retries=5 -r requirements.txt
7
 
8
  ENV HF_HOME=/app/.cache
 
9
  RUN mkdir -p $HF_HOME && chown -R 1000:1000 $HF_HOME
10
 
 
 
 
11
 
 
12
  COPY . .
13
 
14
  EXPOSE 7860
 
6
  RUN pip install --no-cache-dir --default-timeout=100 --retries=5 -r requirements.txt
7
 
8
  ENV HF_HOME=/app/.cache
9
+ # Create the cache directory
10
  RUN mkdir -p $HF_HOME && chown -R 1000:1000 $HF_HOME
11
 
12
+ # Copy the download script and run it
13
+ COPY download_model.py .
14
+ RUN python download_model.py
15
 
16
+ # Now copy the rest of the application
17
  COPY . .
18
 
19
  EXPOSE 7860