abugaber commited on
Commit
cb5d9f5
1 Parent(s): cb3cd41

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -12
Dockerfile CHANGED
@@ -1,15 +1,3 @@
1
- RUN useradd -m -u 1000 user
2
-
3
- # Switch to the "user" user
4
- USER user
5
-
6
- # Set home to the user's home directory
7
- ENV HOME=/home/user \
8
- PATH=/home/user/.local/bin:$PATH
9
-
10
- # Set the working directory to the user's home directory
11
- WORKDIR $HOME/app
12
-
13
  # devel needed for bitsandbytes requirement of libcudart.so, otherwise runtime sufficient
14
  FROM nvidia/cuda:12.1.1-cudnn8-devel-ubuntu20.04
15
 
@@ -49,6 +37,13 @@ RUN usermod -aG docker ${user}
49
  # Switch to the new user
50
  USER ${user}
51
 
 
 
 
 
 
 
 
52
  EXPOSE 8888
53
  EXPOSE 7860
54
  EXPOSE 5000
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  # devel needed for bitsandbytes requirement of libcudart.so, otherwise runtime sufficient
2
  FROM nvidia/cuda:12.1.1-cudnn8-devel-ubuntu20.04
3
 
 
37
  # Switch to the new user
38
  USER ${user}
39
 
40
+ ###
41
+ RUN useradd -m -u 1000 user
42
+
43
+ # Switch to the "user" user
44
+ USER user
45
+ ###
46
+
47
  EXPOSE 8888
48
  EXPOSE 7860
49
  EXPOSE 5000