test2023h5 commited on
Commit
bd2b136
1 Parent(s): 096aced

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -2
Dockerfile CHANGED
@@ -6,8 +6,14 @@ COPY ./requirements.txt /code/requirements.txt
6
 
7
  RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
8
 
9
- # 设置 TRANSFORMERS_CACHE 环境变量
10
- ENV TRANSFORMERS_CACHE="/code/.cache/huggingface"
 
 
 
 
 
 
11
 
12
  COPY . .
13
 
 
6
 
7
  RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
8
 
9
+ USER user
10
+
11
+ ENV HOME=/home/user \
12
+ PATH=/home/user/.local/bin:$PATH
13
+
14
+ WORKDIR $HOME/app
15
+
16
+ COPY --chown=user . $HOME/app
17
 
18
  COPY . .
19