Update repoman, make image a bit smaller.

This commit is contained in:
tastytea 2020-04-20 03:07:57 +02:00
parent c159fa2190
commit 31e48a853d
1 changed files with 4 additions and 2 deletions

View File

@ -5,8 +5,8 @@ FROM gentoo/portage:latest as portage
FROM gentoo/stage3-amd64:latest as build
COPY --from=portage /var/db/repos/gentoo /var/db/repos/gentoo
ENV MAKEOPTS "-j1"
ENV USE "minimal -cracklib -curl -gpg -idn -ncurses -net -nls"
ENV USE "${USE} -pam -pcre -perl -readline -rsync-verify -ssl -webdav"
ENV USE "minimal -cracklib -curl -gpg -idn -ncurses -net -nls \
-pam -pcre -pcre-jit -perl -readline -rsync-verify -ssl -webdav"
ENV FEATURES "-ipc-sandbox -network-sandbox -pid-sandbox -sandbox -usersandbox"
RUN eselect profile set default/linux/amd64/17.1/no-multilib
RUN emerge --root=/workdir --quiet app-portage/repoman dev-vcs/git
@ -18,6 +18,8 @@ RUN emerge --root=/workdir --rage-clean --quiet \
net-misc/rsync \
sys-apps/file \
sys-apps/sed
RUN rm -r /workdir/usr/share/{doc,gtk-doc,i18n,locale,man,zoneinfo}
RUN rm -r /workdir/usr/include
# Final image.
FROM gentoo/portage:latest