Paolo-Fraccaro commited on
Commit
83ebab0
·
1 Parent(s): 64c2e38

fix conda?

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -0
Dockerfile CHANGED
@@ -21,9 +21,15 @@ RUN chmod 777 /code/Miniconda3-latest-Linux-x86_64.sh
21
  RUN /code/Miniconda3-latest-Linux-x86_64.sh -b -p /code/miniconda
22
  ENV PATH="/code/miniconda/bin:${PATH}"
23
 
 
 
 
 
24
 
25
  # Set up a new user named "user" with user ID 1000
26
  RUN useradd -m -u 1000 user
 
 
27
  # Switch to the "user" user
28
  USER user
29
  # Set home to the user's home directory
@@ -42,6 +48,9 @@ ENV HOME=/home/user \
42
 
43
  # RUN conda install python=3.9
44
 
 
 
 
45
  RUN pip3 install setuptools-rust
46
 
47
  RUN conda install pillow -y
 
21
  RUN /code/Miniconda3-latest-Linux-x86_64.sh -b -p /code/miniconda
22
  ENV PATH="/code/miniconda/bin:${PATH}"
23
 
24
+ RUN groupadd miniconda \
25
+ chgrp -R miniconda /code/miniconda/ \
26
+ chmod 770 -R /code/miniconda/
27
+
28
 
29
  # Set up a new user named "user" with user ID 1000
30
  RUN useradd -m -u 1000 user
31
+ RUN adduser user miniconda
32
+
33
  # Switch to the "user" user
34
  USER user
35
  # Set home to the user's home directory
 
48
 
49
  # RUN conda install python=3.9
50
 
51
+ RUN source /code/miniconda/bin/activate
52
+ RUN conda init
53
+
54
  RUN pip3 install setuptools-rust
55
 
56
  RUN conda install pillow -y