From 3f1fc82e03deb1c3b117c65a96f198401b930e2c Mon Sep 17 00:00:00 2001 From: romainx Date: Tue, 4 May 2021 21:58:36 +0200 Subject: [PATCH] Fix DL3059 info: Multiple consecutive `RUN` ... Also fixed Mambaforge checksum --- base-notebook/Dockerfile | 14 ++++++-------- datascience-notebook/Dockerfile | 4 ++-- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/base-notebook/Dockerfile b/base-notebook/Dockerfile index 5266153e..1192d215 100644 --- a/base-notebook/Dockerfile +++ b/base-notebook/Dockerfile @@ -39,7 +39,7 @@ ARG miniforge_version="${conda_version}-${miniforge_patch_number}" # Miniforge installer ARG miniforge_installer="${miniforge_python}-${miniforge_version}-Linux-${miniforge_arch}.sh" # Miniforge checksum -ARG miniforge_checksum="2eb2226214aeec849d9fc935ac092e669993a666a6b25c613b1efc9590441777" +ARG miniforge_checksum="d4065b376f81b83cfef0c7316f97bb83337e4ae27eb988828363a578226e3a62" # Install all OS dependencies for notebook server that starts but lacks all # features (e.g., download as all possible file formats) @@ -51,10 +51,9 @@ RUN apt-get -q update \ sudo \ locales \ fonts-liberation \ - run-one \ - && apt-get clean && rm -rf /var/lib/apt/lists/* - -RUN echo "en_US.UTF-8 UTF-8" > /etc/locale.gen && \ + run-one && \ + apt-get clean && rm -rf /var/lib/apt/lists/* && \ + echo "en_US.UTF-8 UTF-8" > /etc/locale.gen && \ locale-gen # Configure environment @@ -159,9 +158,8 @@ USER root # Prepare upgrade to JupyterLab V3.0 #1205 RUN sed -re "s/c.NotebookApp/c.ServerApp/g" \ - /etc/jupyter/jupyter_notebook_config.py > /etc/jupyter/jupyter_server_config.py - -RUN fix-permissions /etc/jupyter/ + /etc/jupyter/jupyter_notebook_config.py > /etc/jupyter/jupyter_server_config.py && \ + fix-permissions /etc/jupyter/ # Switch back to jovyan to avoid accidental container runs as root USER $NB_UID diff --git a/datascience-notebook/Dockerfile b/datascience-notebook/Dockerfile index de58ea49..62ce058c 100644 --- a/datascience-notebook/Dockerfile +++ b/datascience-notebook/Dockerfile @@ -39,8 +39,8 @@ RUN mkdir "/opt/julia-${JULIA_VERSION}" && \ wget -q https://julialang-s3.julialang.org/bin/linux/x64/$(echo "${JULIA_VERSION}" | cut -d. -f 1,2)"/julia-${JULIA_VERSION}-linux-x86_64.tar.gz" && \ echo "${julia_checksum} *julia-${JULIA_VERSION}-linux-x86_64.tar.gz" | sha256sum -c - && \ tar xzf "julia-${JULIA_VERSION}-linux-x86_64.tar.gz" -C "/opt/julia-${JULIA_VERSION}" --strip-components=1 && \ - rm "/tmp/julia-${JULIA_VERSION}-linux-x86_64.tar.gz" -RUN ln -fs /opt/julia-*/bin/julia /usr/local/bin/julia + rm "/tmp/julia-${JULIA_VERSION}-linux-x86_64.tar.gz" && \ + ln -fs /opt/julia-*/bin/julia /usr/local/bin/julia # Show Julia where conda libraries are \ RUN mkdir /etc/julia && \