gentoo-builder/Dockerfile
2018-11-25 20:29:34 +01:00

43 lines
1019 B
Docker

FROM python:3.7-alpine
RUN apk add --no-cache --virtual .build-deps \
git make gcc musl-dev asciidoc \
\
# Install deps
&& pip install snakeoil \
&& pip install git+https://github.com/dol-sen/pyDeComp \
\
# Clone catalyst repository
&& git clone https://anongit.gentoo.org/git/proj/catalyst.git catalyst \
\
# Build and install catalyst
&& cd catalyst \
&& make \
&& python -m setup install \
\
# Cleanup
&& cd .. \
&& rm -Rf catalyst \
&& apk del .build-deps
RUN apk add coreutils rhash
# Override Stage3 preclean to add perl-cleaner invocation
COPY stage3-preclean-chroot.sh \
/usr/share/catalyst/targets/stage3/stage3-preclean-chroot.sh
# Volume for catalyst generated files
VOLUME /var/lib/catalyst
# Volume for downloaded distfiles
VOLUME /var/cache/portage/distfiles
# Volume for generated packages
VOLUME /var/cache/portage/packages
# The entrypoint…
COPY entrypoint.sh entrypoint.sh
# ... to be called
CMD /entrypoint.sh