Ramses II
commited on
Commit
·
f1bd50d
1
Parent(s):
511bc62
first deploy
Browse files- Dockerfile +6 -0
Dockerfile
CHANGED
@@ -8,9 +8,15 @@ COPY requirements.txt .
|
|
8 |
|
9 |
COPY public /app/public
|
10 |
|
|
|
|
|
|
|
11 |
# Install the dependencies
|
12 |
RUN apt-get update && apt-get install -y wget nginx && pip install -r requirements.txt
|
13 |
|
|
|
|
|
|
|
14 |
# Copy the JupyterLab configuration file
|
15 |
COPY jupyter_config.py /etc/jupyterlab/jupyter_config.py
|
16 |
|
|
|
8 |
|
9 |
COPY public /app/public
|
10 |
|
11 |
+
# Switch to root user to install system packages
|
12 |
+
USER root
|
13 |
+
|
14 |
# Install the dependencies
|
15 |
RUN apt-get update && apt-get install -y wget nginx && pip install -r requirements.txt
|
16 |
|
17 |
+
# Switch back to the original user
|
18 |
+
USER ${NB_UID}
|
19 |
+
|
20 |
# Copy the JupyterLab configuration file
|
21 |
COPY jupyter_config.py /etc/jupyterlab/jupyter_config.py
|
22 |
|