From cdf5831ac2ca73d5d196a07ea68f83a2c16c6ccb Mon Sep 17 00:00:00 2001 From: tastytea Date: Sat, 2 May 2020 23:14:52 +0200 Subject: [PATCH] gentoo-base: Only include run-time dependencies in image. --- gentoo-base.Dockerfile | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/gentoo-base.Dockerfile b/gentoo-base.Dockerfile index fed87b3..5bf04b3 100644 --- a/gentoo-base.Dockerfile +++ b/gentoo-base.Dockerfile @@ -13,19 +13,18 @@ RUN echo 'MAKEOPTS="-j1"' >> /etc/portage/make.conf RUN echo 'USE="minimal -cracklib -gpg -ncurses -nls -pam -pcre -pcre-jit -perl \ -readline -rsync-verify"' >> /etc/portage/make.conf RUN eselect profile set default/linux/amd64/17.1 -RUN quickpkg --include-config=y @system sys-libs/glibc \ - app-portage/elt-patches dev-lang/perl -RUN emerge --root=/workdir --usepkgonly --nodeps --quiet \ - app-portage/elt-patches dev-lang/perl -RUN emerge --root=/workdir --root-deps --usepkg --quiet sys-apps/portage +RUN quickpkg --include-config=y @world sys-libs/glibc +RUN emerge --root=/workdir --usepkg --quiet sys-apps/portage RUN cp /etc/portage/make.conf /workdir/etc/portage/make.conf RUN rm -r /workdir/usr/share/{doc,i18n,locale,man,zoneinfo} # Final image. FROM scratch LABEL maintainer="tastytea+docker@tastytea.de" -LABEL description="[WIP] My base for Gentoo images." +LABEL description="My base for Gentoo images (Without build dependencies)." COPY --from=build /workdir / +RUN echo 'portage:x:250:250:portage:/var/tmp/portage:/bin/false' >> /etc/passwd +RUN echo 'portage::250:portage' >> /etc/group # TODO: Mount distfiles. # TODO: Use ccache with data on external volume.