qingxu98 commited on
Commit
029cf9d
1 Parent(s): 3d7db12

Add user to Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -1
Dockerfile CHANGED
@@ -1,6 +1,8 @@
1
  # read the doc: https://huggingface.co/docs/hub/spaces-sdks-docker
2
  # you will also find guides on how best to write your Dockerfile
3
  FROM python:3.11
 
 
4
 
5
 
6
  # 进入工作路径(必要)
@@ -9,7 +11,7 @@ WORKDIR /gpt
9
 
10
  RUN git clone https://github.com/binary-husky/gpt_academic.git
11
 
12
- COPY ./config_private.py /gpt/gpt_academic/config_private.py
13
 
14
  WORKDIR /gpt/gpt_academic
15
 
 
1
  # read the doc: https://huggingface.co/docs/hub/spaces-sdks-docker
2
  # you will also find guides on how best to write your Dockerfile
3
  FROM python:3.11
4
+ RUN useradd -m -u 1000 user
5
+ USER user
6
 
7
 
8
  # 进入工作路径(必要)
 
11
 
12
  RUN git clone https://github.com/binary-husky/gpt_academic.git
13
 
14
+ COPY --chown=user:user ./config_private.py /gpt/gpt_academic/config_private.py
15
 
16
  WORKDIR /gpt/gpt_academic
17