Source of my repositories on
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tastytea 9ce4627a23 gentoo-base: small optimisations 3 months ago
README.adoc Update readme. 3 years ago fix bashism in build script 3 months ago
gentoo-base.Dockerfile gentoo-base: small optimisations 3 months ago
pkgcheck.Dockerfile pkgcheck: update 3 months ago
repoman.Dockerfile fix Gentoo docker container 6 months ago


Docker images

My amateurish attempts at creating docker images.


A minimal Gentoo image without build dependencies. I use it as a base for other images, so that I don’t have to compile everything from scratch all the time.


  • Replaced -O2 with -Os in ${COMMON_FLAGS}.

  • Turned off sandboxing (Bug 680456).

  • Turned off documentation installation.

  • MAKEOPTS="-j1".

  • Deactivated some use-flags, added minimal.

  • Packages installed: sys-apps/portage + run-time dependencies.

  • Locales: C.utf8 and en_DK.utf8.

Example Dockerfile

# Portage tree.
FROM gentoo/portage:latest as portage

# Minimal Gentoo image without build dependencies.
FROM tastytea/gentoo-base:latest as gentoo-base

# Build packages in /workdir.
FROM gentoo/stage3-amd64-nomultilib:latest as build
COPY --from=portage /var/db/repos/gentoo /var/db/repos/gentoo
COPY --from=gentoo-base / /workdir
RUN cp /workdir/etc/portage/make.conf /etc/portage/make.conf
RUN eselect profile set default/linux/amd64/17.1/no-multilib
RUN mkdir -p /etc/portage/package.accept_keywords
RUN echo 'games-misc/cowsay' >> \
RUN emerge --root=/workdir --buildpkg=y --usepkg --quiet games-misc/cowsay

# Final image.
FROM scratch
COPY --from=build /workdir /
ENV LANG "en_DK.utf8"