Tekknoman commited on
Commit
c8a9da4
·
1 Parent(s): f78253b

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -5
Dockerfile CHANGED
@@ -8,7 +8,7 @@ ENV CLIENT_SECRET = $CLIENT_SECRET
8
  ENV CLIENT_ID = $CLIENT_ID
9
 
10
  # Set up a new user named "user" with user ID 1000
11
- RUN useradd -m -u 1000 user -p $(echo "password" | openssl passwd -1 -stdin)
12
 
13
  # RUN useradd -ou 0 -g 0 admin -p $(echo "password" | openssl passwd -1 -stdin)
14
 
@@ -16,16 +16,16 @@ RUN pip install notebook oauthenticator dockerspawner
16
 
17
 
18
  # Switch to the "user" user
19
- USER user
20
 
21
  # Set home to the user's home directory
22
- ENV HOME=/home/user \
23
- PATH=/home/user/.local/bin:$PATH
24
 
25
  # Set the working directory to the user's home directory
26
  WORKDIR $HOME/app
27
 
28
- COPY --chown=user . $HOME/app
29
 
30
 
31
  CMD ["jupyterhub", "--port", "7860"]
 
8
  ENV CLIENT_ID = $CLIENT_ID
9
 
10
  # Set up a new user named "user" with user ID 1000
11
+ RUN useradd -m -u 1000 admin -p $(echo "password" | openssl passwd -1 -stdin)
12
 
13
  # RUN useradd -ou 0 -g 0 admin -p $(echo "password" | openssl passwd -1 -stdin)
14
 
 
16
 
17
 
18
  # Switch to the "user" user
19
+ USER admin
20
 
21
  # Set home to the user's home directory
22
+ ENV HOME=/home/admin \
23
+ PATH=/home/admin/.local/bin:$PATH
24
 
25
  # Set the working directory to the user's home directory
26
  WORKDIR $HOME/app
27
 
28
+ COPY --chown=admin . $HOME/app
29
 
30
 
31
  CMD ["jupyterhub", "--port", "7860"]