Yaron Koresh commited on
Commit
d748e73
·
verified ·
1 Parent(s): 0826909

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -5
Dockerfile CHANGED
@@ -1,3 +1,4 @@
 
1
  FROM nvidia/cuda:12.5.1-cudnn-devel-ubuntu22.04
2
 
3
  RUN useradd -m -u 1000 user
@@ -14,10 +15,11 @@ ENV HOME=/home/user \
14
 
15
  WORKDIR $HOME/app
16
  COPY --chown=user . $HOME/app
 
17
 
18
- CMD ["wget", "https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh", ">", "./Miniconda3.sh"]
19
- CMD ["./Miniconda3.sh", "-b"]
20
- CMD ["source", "/home/miniconda3/bin/activate"]
21
- CMD ["conda", "env", "create", "-f", "/code/env.yml"]
22
 
23
- CMD ["./start.sh"]
 
1
+
2
  FROM nvidia/cuda:12.5.1-cudnn-devel-ubuntu22.04
3
 
4
  RUN useradd -m -u 1000 user
 
15
 
16
  WORKDIR $HOME/app
17
  COPY --chown=user . $HOME/app
18
+ RUN chmod 777 $HOME/app
19
 
20
+ CMD --chown=user ["wget", "https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh", ">", "./Miniconda3.sh"]
21
+ CMD --chown=user ["./Miniconda3.sh", "-b"]
22
+ CMD --chown=user ["source", "/home/miniconda3/bin/activate"]
23
+ CMD --chown=user ["conda", "env", "create", "-f", "/code/env.yml"]
24
 
25
+ CMD --chown=user ["./start.sh"]