Yaron Koresh commited on
Commit
19aa0b3
·
verified ·
1 Parent(s): 10987bb

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -4
Dockerfile CHANGED
@@ -1,8 +1,7 @@
1
 
2
  FROM nvidia/cuda:12.5.1-cudnn-devel-ubuntu22.04
3
 
4
- RUN useradd -m -u 1000 user --groups sudo
5
- USER user
6
 
7
  ENV HOME=/home/user \
8
  PYTHONUNBUFFERED=1 \
@@ -17,8 +16,8 @@ WORKDIR $HOME/app
17
  COPY --chown=user . $HOME/app
18
  run chmod -R a+xrw .
19
 
20
- run sudo apt update
21
- run sudo apt-get install -y git git-lfs ffmpeg libsm6 libxext6 cmake rsync gcc make python3-venv libgl1-mesa-glx
22
  run mkdir -p ~/miniconda3
23
  run wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda3/miniconda.sh
24
  run bash ~/miniconda3/miniconda.sh -b -u -p ~/miniconda3
 
1
 
2
  FROM nvidia/cuda:12.5.1-cudnn-devel-ubuntu22.04
3
 
4
+ USER root
 
5
 
6
  ENV HOME=/home/user \
7
  PYTHONUNBUFFERED=1 \
 
16
  COPY --chown=user . $HOME/app
17
  run chmod -R a+xrw .
18
 
19
+ run apt update
20
+ run apt-get install -y git git-lfs ffmpeg libsm6 libxext6 cmake rsync gcc make python3-venv libgl1-mesa-glx
21
  run mkdir -p ~/miniconda3
22
  run wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda3/miniconda.sh
23
  run bash ~/miniconda3/miniconda.sh -b -u -p ~/miniconda3