Skip to content

Commit

Permalink
Enable man.
Browse files Browse the repository at this point in the history
Enabling man could possibly bloat the datahub image. Undo this if it increases the size too much.
  • Loading branch information
ryanlovett committed Aug 8, 2024
1 parent 05e5e5d commit b6074f4
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions deployments/datahub/images/default/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,17 @@ 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/^/#/' exclude

# From docker-ce-packaging
# Remove diverted man binary to prevent man-pages being replaced with "minimized" message. See docker/for-linux#639
RUN if [ "$(dpkg-divert --truename /usr/bin/man)" = "/usr/bin/man.REAL" ]; then \
rm -f /usr/bin/man; \
dpkg-divert --quiet --remove --rename /usr/bin/man; \
fi
RUN mandb -c

# Install all apt packages
COPY apt.txt /tmp/apt.txt
RUN apt-get -qq update --yes && \
Expand Down

0 comments on commit b6074f4

Please sign in to comment.