From bea4dce328e47d03b4a3e3c74ee43f8b71fa8739 Mon Sep 17 00:00:00 2001 From: trevnels <25140503+trevnels@users.noreply.github.com> Date: Thu, 15 Feb 2024 15:39:07 -0500 Subject: [PATCH] feat: restore manpages --- Containerfile | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/Containerfile b/Containerfile index 464cb9a..75c7542 100644 --- a/Containerfile +++ b/Containerfile @@ -11,12 +11,17 @@ COPY aur-packages / RUN mkdir -p /etc/fish/conf.d COPY distrobox.fish /etc/fish/conf.d/ -RUN useradd -m --shell=/bin/bash build && usermod -L build && \ +RUN sed -i 's|NoExtract = usr/share/man/\* usr/share/info/\*||' && \ + useradd -m --shell=/bin/bash build && usermod -L build && \ echo "build ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers && \ echo "root ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers -# update and install normal packages -RUN pacman -Syu --noconfirm --needed $(cat /extra-packages) +# restore manpages +RUN mkdir -p /usr/share/man && \ + pacman -Qqo /usr/share/man | pacman -Syu --noconfirm - + +# install normal packages +RUN pacman -S --noconfirm --needed $(cat /extra-packages) USER build WORKDIR /home/build