ARG BASE_IMAGE=quay.io/jupyter/base-notebook FROM $BASE_IMAGE # Fix: https://github.com/hadolint/hadolint/wiki/DL4006 # Fix: https://github.com/koalaman/shellcheck/wiki/SC3014 SHELL ["/bin/bash", "-o", "pipefail", "-c"] USER root # `/etc/dpkg/dpkg.cfg.d/excludes` contains several `path-exclude`s, including man pages # Remove it, then install man, install docs RUN rm /etc/dpkg/dpkg.cfg.d/excludes && \ apt-get update --yes && \ dpkg -l | grep ^ii | cut -d' ' -f3 | xargs apt-get install --yes --no-install-recommends --reinstall man && \ apt-get clean && rm -rf /var/lib/apt/lists/* USER ${NB_UID}