From 684412dd092b3d13277268d8203e63686de48728 Mon Sep 17 00:00:00 2001 From: Ryan Lovett Date: Thu, 8 Aug 2024 13:34:06 -0700 Subject: [PATCH] Reinstall coreutils to get man pages. This ensures that man pages for basic tools exist. There were previously being excluded by dpkg. --- deployments/datahub/images/default/Dockerfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/deployments/datahub/images/default/Dockerfile b/deployments/datahub/images/default/Dockerfile index 49062d34d..451815ffb 100644 --- a/deployments/datahub/images/default/Dockerfile +++ b/deployments/datahub/images/default/Dockerfile @@ -22,7 +22,11 @@ RUN apt-get -qq update --yes && \ RUN adduser --disabled-password --gecos "Default Jupyter user" ${NB_USER} # Do not exclude manpages from being installed. -RUN sed -i -e '/usr.share.man/s/^/#/' /etc/dpkg/dpkg.cfg.d/excludes +RUN sed -i '/usr.share.man/s/^/#/' /etc/dpkg/dpkg.cfg.d/excludes + +# Reinstall coreutils so that basic man pages are installed. Due to dpkg's +# exclusion, they were not originally installed. +RUN apt --reinstall install coreutils # Install all apt packages COPY apt.txt /tmp/apt.txt