Update repoman, make image a bit smaller.
This commit is contained in:
parent
c159fa2190
commit
31e48a853d
|
@ -5,8 +5,8 @@ FROM gentoo/portage:latest as portage
|
||||||
FROM gentoo/stage3-amd64:latest as build
|
FROM gentoo/stage3-amd64:latest as build
|
||||||
COPY --from=portage /var/db/repos/gentoo /var/db/repos/gentoo
|
COPY --from=portage /var/db/repos/gentoo /var/db/repos/gentoo
|
||||||
ENV MAKEOPTS "-j1"
|
ENV MAKEOPTS "-j1"
|
||||||
ENV USE "minimal -cracklib -curl -gpg -idn -ncurses -net -nls"
|
ENV USE "minimal -cracklib -curl -gpg -idn -ncurses -net -nls \
|
||||||
ENV USE "${USE} -pam -pcre -perl -readline -rsync-verify -ssl -webdav"
|
-pam -pcre -pcre-jit -perl -readline -rsync-verify -ssl -webdav"
|
||||||
ENV FEATURES "-ipc-sandbox -network-sandbox -pid-sandbox -sandbox -usersandbox"
|
ENV FEATURES "-ipc-sandbox -network-sandbox -pid-sandbox -sandbox -usersandbox"
|
||||||
RUN eselect profile set default/linux/amd64/17.1/no-multilib
|
RUN eselect profile set default/linux/amd64/17.1/no-multilib
|
||||||
RUN emerge --root=/workdir --quiet app-portage/repoman dev-vcs/git
|
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 \
|
net-misc/rsync \
|
||||||
sys-apps/file \
|
sys-apps/file \
|
||||||
sys-apps/sed
|
sys-apps/sed
|
||||||
|
RUN rm -r /workdir/usr/share/{doc,gtk-doc,i18n,locale,man,zoneinfo}
|
||||||
|
RUN rm -r /workdir/usr/include
|
||||||
|
|
||||||
# Final image.
|
# Final image.
|
||||||
FROM gentoo/portage:latest
|
FROM gentoo/portage:latest
|
||||||
|
|
Loading…
Reference in New Issue
Block a user