poccio commited on
Commit
cb6b4d8
·
1 Parent(s): a3a9e28

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +11 -0
Dockerfile CHANGED
@@ -1,5 +1,16 @@
1
  FROM poccio/exmod:1.0
2
 
 
 
 
 
 
 
 
 
 
 
 
3
  RUN bash -c "source /root/miniconda3/etc/profile.d/conda.sh"
4
 
5
  WORKDIR /exmod
 
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
+
7
+ # Switch to the "user" user
8
+ USER user
9
+
10
+ # Set home to the user's home directory
11
+ ENV HOME=/home/user \
12
+ PATH=/home/user/.local/bin:$PATH
13
+
14
  RUN bash -c "source /root/miniconda3/etc/profile.d/conda.sh"
15
 
16
  WORKDIR /exmod