Ramses II
commited on
Commit
·
0d321d4
1
Parent(s):
96dcb2f
auto msg
Browse files- Dockerfile +18 -2
Dockerfile
CHANGED
|
@@ -12,8 +12,24 @@ COPY public /app/public
|
|
| 12 |
# Switch to root user to install system packages and set permissions
|
| 13 |
USER root
|
| 14 |
|
| 15 |
-
# Install
|
| 16 |
-
RUN apt-get update && apt-get install -y
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 17 |
|
| 18 |
# Copy the configuration files and entrypoint script
|
| 19 |
COPY jupyter_config.py /etc/jupyter/jupyter_config.py
|
|
|
|
| 12 |
# Switch to root user to install system packages and set permissions
|
| 13 |
USER root
|
| 14 |
|
| 15 |
+
# Install sudo and other dependencies
|
| 16 |
+
RUN apt-get update && apt-get install -y \
|
| 17 |
+
wget \
|
| 18 |
+
nginx \
|
| 19 |
+
sudo \
|
| 20 |
+
build-essential \
|
| 21 |
+
curl \
|
| 22 |
+
git \
|
| 23 |
+
vim \
|
| 24 |
+
&& apt-get clean && rm -rf /var/lib/apt/lists/*
|
| 25 |
+
|
| 26 |
+
# Install Python dependencies
|
| 27 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
| 28 |
+
|
| 29 |
+
# Add jovyan to sudoers
|
| 30 |
+
RUN usermod -aG sudo jovyan && \
|
| 31 |
+
echo "jovyan ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/jovyan && \
|
| 32 |
+
chmod 0440 /etc/sudoers.d/jovyan
|
| 33 |
|
| 34 |
# Copy the configuration files and entrypoint script
|
| 35 |
COPY jupyter_config.py /etc/jupyter/jupyter_config.py
|