qihang commited on
Commit
7c94dc0
1 Parent(s): 921ddd7

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -3
Dockerfile CHANGED
@@ -32,14 +32,14 @@ RUN pip install torch==2.0.0 torchvision==0.15.1 torchaudio==2.0.1 --index-url h
32
 
33
  # COPY --chown=user . /home/user
34
 
35
- ARG USER_NAME=berf
36
- ARG GROUP_NAME=berfs
37
  ARG UID=1000
38
  ARG GID=1000
39
  # Change user to non-root user
40
  RUN groupadd -g ${GID} ${GROUP_NAME} \
41
  && useradd -ms /bin/sh -u ${UID} -g ${GID} ${USER_NAME}
42
- USER ${USER_NAME}
43
 
44
  ADD "https://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@api.github.com/repos/zqh0253/tmp_berf/commits?per_page=1" latest_commit
45
  RUN git clone https://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@github.com/zqh0253/tmp_berf.git berf
 
32
 
33
  # COPY --chown=user . /home/user
34
 
35
+ ARG USER_NAME=user
36
+ ARG GROUP_NAME=berf
37
  ARG UID=1000
38
  ARG GID=1000
39
  # Change user to non-root user
40
  RUN groupadd -g ${GID} ${GROUP_NAME} \
41
  && useradd -ms /bin/sh -u ${UID} -g ${GID} ${USER_NAME}
42
+ USER user
43
 
44
  ADD "https://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@api.github.com/repos/zqh0253/tmp_berf/commits?per_page=1" latest_commit
45
  RUN git clone https://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@github.com/zqh0253/tmp_berf.git berf