poccio commited on
Commit
bc19c14
·
1 Parent(s): 5c5f70d

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -3
Dockerfile CHANGED
@@ -1,16 +1,21 @@
1
  FROM poccio/exmod:1.0
2
 
3
-
4
  # Set up a new user named "user" with user ID 1000
5
  RUN useradd -m -u 1000 user
6
- RUN usermod -aG sudo user
 
 
 
 
 
 
7
 
8
  # Switch to the "user" user
9
  USER user
10
 
11
  # Set home to the user's home directory
12
  ENV HOME=/home/user \
13
- PATH=/home/user/.local/bin:$PATH
14
 
15
  RUN sudo bash -c "source /root/miniconda3/etc/profile.d/conda.sh"
16
 
 
1
  FROM poccio/exmod:1.0
2
 
 
3
  # Set up a new user named "user" with user ID 1000
4
  RUN useradd -m -u 1000 user
5
+
6
+ # clone root folder
7
+ RUN cp -r /root /home/user
8
+
9
+ # change permissions
10
+ RUN chmod 777 /root
11
+ RUN chmod 777 /exmod
12
 
13
  # Switch to the "user" user
14
  USER user
15
 
16
  # Set home to the user's home directory
17
  ENV HOME=/home/user \
18
+ PATH=/root/miniconda3/bin:/home/user/.local/bin:$PATH
19
 
20
  RUN sudo bash -c "source /root/miniconda3/etc/profile.d/conda.sh"
21