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

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -3
Dockerfile CHANGED
@@ -24,9 +24,8 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-ins
24
  wget \
25
  && rm -rf /var/lib/apt/lists/*
26
 
27
- RUN useradd -m -u 1000 user
28
- USER user
29
-
30
 
31
  # RUN pip install torch==1.9.1+cu111 torchvision==0.10.1+cu111 torchaudio==0.9.1 -f https://download.pytorch.org/whl/torch_stable.html
32
  RUN pip install torch==2.0.0 torchvision==0.15.1 torchaudio==2.0.1 --index-url https://download.pytorch.org/whl/cu118
@@ -35,6 +34,8 @@ RUN pip install torch==2.0.0 torchvision==0.15.1 torchaudio==2.0.1 --index-url h
35
 
36
  ARG USER_NAME=berf
37
  ARG GROUP_NAME=berfs
 
 
38
  # Change user to non-root user
39
  RUN groupadd -g ${GID} ${GROUP_NAME} \
40
  && useradd -ms /bin/sh -u ${UID} -g ${GID} ${USER_NAME}
 
24
  wget \
25
  && rm -rf /var/lib/apt/lists/*
26
 
27
+ # RUN useradd -m -u 1000 user
28
+ # USER user
 
29
 
30
  # RUN pip install torch==1.9.1+cu111 torchvision==0.10.1+cu111 torchaudio==0.9.1 -f https://download.pytorch.org/whl/torch_stable.html
31
  RUN pip install torch==2.0.0 torchvision==0.15.1 torchaudio==2.0.1 --index-url https://download.pytorch.org/whl/cu118
 
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}