1
1
# Copyright (c) Jupyter Development Team.
2
2
# Distributed under the terms of the Modified BSD License.
3
3
4
- # Ubuntu 18.04 (bionic) from 2018-05-26
5
- # https://github.com/docker-library/official-images /commit/aac6a45b9eb2bffb8102353c350d341a410fb169
6
- ARG BASE_CONTAINER=ubuntu:bionic-20180526 @sha256:c8c275751219dadad8fa56b3ac41ca6cb22219ff117ca98fe82b42f24e1ba64e
4
+ # Ubuntu 18.04 (bionic) from 2019-06-12
5
+ # https://github.com/tianon/ docker-brew-ubuntu-core /commit/3c462555392cb188830b7c91e29311b5fad90cfe
6
+ ARG BASE_CONTAINER=ubuntu:bionic-20190612 @sha256:9b1702dcfe32c873a770a32cfd306dd7fc1c4fd134adfb783db68defc8894b3c
7
7
FROM $BASE_CONTAINER
8
8
9
9
LABEL maintainer=
"Jupyter Project <[email protected] >"
@@ -60,18 +60,19 @@ RUN echo "auth requisite pam_deny.so" >> /etc/pam.d/su && \
60
60
fix-permissions "$(dirname $CONDA_DIR)"
61
61
62
62
USER $NB_UID
63
+ WORKDIR $HOME
63
64
64
65
# Setup work directory for backward-compatibility
65
66
RUN mkdir /home/$NB_USER/work && \
66
67
fix-permissions /home/$NB_USER
67
68
68
69
# Install conda as jovyan and check the md5 sum provided on the download site
69
- ENV MINICONDA_VERSION=4.5.12 \
70
- CONDA_VERSION=4.6.14
70
+ ENV MINICONDA_VERSION=4.6.14 \
71
+ CONDA_VERSION=4.7.5
71
72
72
73
RUN cd /tmp && \
73
74
wget --quiet https://repo.continuum.io/miniconda/Miniconda3-${MINICONDA_VERSION}-Linux-x86_64.sh && \
74
- echo "866ae9dff53ad0874e1d1a60b1ad1ef8 *Miniconda3-${MINICONDA_VERSION}-Linux-x86_64.sh" | md5sum -c - && \
75
+ echo "718259965f234088d785cad1fbd7de03 *Miniconda3-${MINICONDA_VERSION}-Linux-x86_64.sh" | md5sum -c - && \
75
76
/bin/bash Miniconda3-${MINICONDA_VERSION}-Linux-x86_64.sh -f -b -p $CONDA_DIR && \
76
77
rm Miniconda3-${MINICONDA_VERSION}-Linux-x86_64.sh && \
77
78
echo "conda ${CONDA_VERSION}" >> $CONDA_DIR/conda-meta/pinned && \
@@ -111,10 +112,7 @@ RUN conda install --quiet --yes \
111
112
fix-permissions $CONDA_DIR && \
112
113
fix-permissions /home/$NB_USER
113
114
114
- USER root
115
-
116
115
EXPOSE 8888
117
- WORKDIR $HOME
118
116
119
117
# Configure container startup
120
118
ENTRYPOINT ["tini" , "-g" , "--" ]
@@ -125,6 +123,9 @@ COPY start.sh /usr/local/bin/
125
123
COPY start-notebook.sh /usr/local/bin/
126
124
COPY start-singleuser.sh /usr/local/bin/
127
125
COPY jupyter_notebook_config.py /etc/jupyter/
126
+
127
+ # Fix permissions on /etc/jupyter as root
128
+ USER root
128
129
RUN fix-permissions /etc/jupyter/
129
130
130
131
# Switch back to jovyan to avoid accidental container runs as root
0 commit comments