pengdaqian commited on
Commit
4c170bb
1 Parent(s): 65f33c6

warm up model

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -1
Dockerfile CHANGED
@@ -1,9 +1,11 @@
1
  FROM python:3.8
2
 
3
  COPY requirements.txt requirements.txt
4
- RUN pip3 install -r requirements.txt
5
 
6
  RUN mkdir -p $HOME/app/cache/transformers
 
 
7
  ENV TRANSFORMERS_CACHE $HOME/app/cache/transformers
8
  ENV HF_HOME $HOME/app/cache/transformers
9
 
 
1
  FROM python:3.8
2
 
3
  COPY requirements.txt requirements.txt
4
+ RUN pip3 install --no-cache-dir -r requirements.txt
5
 
6
  RUN mkdir -p $HOME/app/cache/transformers
7
+ RUN chmod 777 $HOME/app/cache/transformers
8
+
9
  ENV TRANSFORMERS_CACHE $HOME/app/cache/transformers
10
  ENV HF_HOME $HOME/app/cache/transformers
11