Commit e00fd053 authored by Min RK's avatar Min RK Committed by GitHub

install pip explicitly (#989)

install pip explicitly
parents 75519a57 9c8ac723
...@@ -70,8 +70,8 @@ RUN mkdir /home/$NB_USER/work && \ ...@@ -70,8 +70,8 @@ RUN mkdir /home/$NB_USER/work && \
fix-permissions /home/$NB_USER fix-permissions /home/$NB_USER
# Install conda as jovyan and check the md5 sum provided on the download site # Install conda as jovyan and check the md5 sum provided on the download site
ENV MINICONDA_VERSION=4.7.10 \ ENV MINICONDA_VERSION=4.7.12.1 \
MINICONDA_MD5=1c945f2b3335c7b2b15130b1b2dc5cf4 \ MINICONDA_MD5=81c773ff87af5cfac79ab862942ab6b3 \
CONDA_VERSION=4.7.12 CONDA_VERSION=4.7.12
RUN cd /tmp && \ RUN cd /tmp && \
...@@ -80,13 +80,14 @@ RUN cd /tmp && \ ...@@ -80,13 +80,14 @@ RUN cd /tmp && \
/bin/bash Miniconda3-${MINICONDA_VERSION}-Linux-x86_64.sh -f -b -p $CONDA_DIR && \ /bin/bash Miniconda3-${MINICONDA_VERSION}-Linux-x86_64.sh -f -b -p $CONDA_DIR && \
rm Miniconda3-${MINICONDA_VERSION}-Linux-x86_64.sh && \ rm Miniconda3-${MINICONDA_VERSION}-Linux-x86_64.sh && \
echo "conda ${CONDA_VERSION}" >> $CONDA_DIR/conda-meta/pinned && \ echo "conda ${CONDA_VERSION}" >> $CONDA_DIR/conda-meta/pinned && \
$CONDA_DIR/bin/conda config --system --prepend channels conda-forge && \ conda config --system --prepend channels conda-forge && \
$CONDA_DIR/bin/conda config --system --set auto_update_conda false && \ conda config --system --set auto_update_conda false && \
$CONDA_DIR/bin/conda config --system --set show_channel_urls true && \ conda config --system --set show_channel_urls true && \
if [ ! $PYTHON_VERSION = 'default' ]; then conda install --yes python=$PYTHON_VERSION; fi && \ if [ ! $PYTHON_VERSION = 'default' ]; then conda install --yes python=$PYTHON_VERSION; fi && \
conda list python | grep '^python ' | tr -s ' ' | cut -d '.' -f 1,2 | sed 's/$/.*/' >> $CONDA_DIR/conda-meta/pinned && \ conda list python | grep '^python ' | tr -s ' ' | cut -d '.' -f 1,2 | sed 's/$/.*/' >> $CONDA_DIR/conda-meta/pinned && \
$CONDA_DIR/bin/conda install --quiet --yes conda && \ conda install --quiet --yes conda && \
$CONDA_DIR/bin/conda update --all --quiet --yes && \ conda install --quiet --yes pip && \
conda update --all --quiet --yes && \
conda clean --all -f -y && \ conda clean --all -f -y && \
rm -rf /home/$NB_USER/.cache/yarn && \ rm -rf /home/$NB_USER/.cache/yarn && \
fix-permissions $CONDA_DIR && \ fix-permissions $CONDA_DIR && \
...@@ -106,7 +107,7 @@ RUN conda install --quiet --yes 'tini=0.18.0' && \ ...@@ -106,7 +107,7 @@ RUN conda install --quiet --yes 'tini=0.18.0' && \
# Do all this in a single RUN command to avoid duplicating all of the # Do all this in a single RUN command to avoid duplicating all of the
# files across image layers when the permissions change # files across image layers when the permissions change
RUN conda install --quiet --yes \ RUN conda install --quiet --yes \
'notebook=6.0.2' \ 'notebook=6.0.3' \
'jupyterhub=1.1.0' \ 'jupyterhub=1.1.0' \
'jupyterlab=1.2.5' && \ 'jupyterlab=1.2.5' && \
conda clean --all -f -y && \ conda clean --all -f -y && \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment