pengdaqian commited on
Commit
450ca22
1 Parent(s): b280673

warm up model

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -7
Dockerfile CHANGED
@@ -3,15 +3,9 @@ FROM python:3.8
3
  COPY requirements.txt requirements.txt
4
  RUN pip3 install -r requirements.txt
5
 
6
- RUN useradd -m -u 1000 user
7
- USER user
8
- ENV HOME=/home/user \
9
- PATH=/home/user/.local/bin:$PATH \
10
- HF_HOME=/home/app/.cache/huggingface
11
-
12
  WORKDIR $HOME/app
13
 
14
- COPY --chown=user . $HOME/app
15
 
16
  # cache model
17
  RUN python3 warm_up.py
 
3
  COPY requirements.txt requirements.txt
4
  RUN pip3 install -r requirements.txt
5
 
 
 
 
 
 
 
6
  WORKDIR $HOME/app
7
 
8
+ COPY . $HOME/app
9
 
10
  # cache model
11
  RUN python3 warm_up.py