41 lines
1.4 KiB
Docker
41 lines
1.4 KiB
Docker
# 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-openrc 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
|
|
ENV USE "-curl -webdav"
|
|
RUN eselect profile set default/linux/amd64/17.1/no-multilib
|
|
RUN mkdir -p /etc/portage/package.accept_keywords
|
|
RUN echo -e 'dev-util/pkgcheck\n sys-apps/pkgcore\n dev-python/snakeoil\n' \
|
|
' dev-python/tree-sitter\n dev-libs/tree-sitter-bash' >> \
|
|
/etc/portage/package.accept_keywords/portage
|
|
RUN quickpkg --include-config=y @world sys-libs/glibc
|
|
RUN emerge --root=/workdir --buildpkg=y --usepkg=y --noreplace --quiet \
|
|
dev-util/pkgcheck dev-python/requests dev-vcs/git
|
|
RUN emerge --root=/workdir --rage-clean --quiet \
|
|
app-arch/tar \
|
|
app-arch/xz-utils \
|
|
net-misc/rsync \
|
|
sys-apps/file \
|
|
sys-apps/sed \
|
|
dev-lang/perl \
|
|
sys-libs/timezone-data \
|
|
sys-devel/gcc
|
|
RUN rm -r /workdir/usr/share/gtk-doc
|
|
RUN rm -r /workdir/usr/include
|
|
RUN rm -r /workdir/var/db/pkg
|
|
|
|
# Final image.
|
|
FROM gentoo/portage:latest
|
|
LABEL maintainer="tastytea+docker@tastytea.de"
|
|
LABEL description="Latest ~amd64 dev-util/pkgcheck."
|
|
COPY --from=build /workdir /
|
|
RUN eselect profile set default/linux/amd64/17.1/no-multilib
|
|
ENV LANG "en_DK.utf8"
|