Update Dockerfile
Browse files- 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
|
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
|
20 |
|
21 |
# Set home to the user's home directory
|
22 |
-
ENV HOME=/home/
|
23 |
-
PATH=/home/
|
24 |
|
25 |
# Set the working directory to the user's home directory
|
26 |
WORKDIR $HOME/app
|
27 |
|
28 |
-
COPY --chown=
|
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"]
|