Skip to content

Commit

Permalink
feat: restore manpages
Browse files Browse the repository at this point in the history
  • Loading branch information
trevnels committed Feb 15, 2024
1 parent cbb0e02 commit bea4dce
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bea4dce

Please sign in to comment.