Source of my repositories on https://hub.docker.com/u/tastytea.
Go to file
tastytea e5dee5b992 readme: Add --buildpkg=y --usepkg to example. 2020-05-03 15:49:50 +02:00
.dir-locals.el Emacs: Add bug-reference-url-format as dir local variable. 2020-05-02 03:24:08 +02:00
.gitignore Emacs: Add bug-reference-url-format as dir local variable. 2020-05-02 03:24:08 +02:00
README.adoc readme: Add --buildpkg=y --usepkg to example. 2020-05-03 15:49:50 +02:00
build.sh Add build script. 2020-04-20 00:55:26 +02:00
gentoo-base.Dockerfile gentoo-base: Dont't try to remove nonexistent directories. 2020-05-03 04:20:57 +02:00
repoman.Dockerfile repoman: Don't try to remove nonexistent directories. 2020-05-03 14:10:41 +02:00

README.adoc

Docker images

My amateurish attempts at creating docker images.

tastytea/gentoo-base

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

Features

  • 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.

  • Deleted: Documentation, translations, time zone info.

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: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
RUN echo 'games-misc/cowsay' >> \
    /workdir/etc/portage/package.accept_keywords/cowsay
RUN emerge --root=/workdir --buildpkg=y --usepkg --quiet games-misc/cowsay

# Final image.
FROM scratch
COPY --from=build /workdir /