gentoo-builder/Dockerfile
2018-11-25 19:18:55 +01:00

30 lines
679 B
Docker

FROM python:3.7-alpine
RUN apk add git
RUN apk add --no-cache --virtual .build-deps \
gcc musl-dev \
&& pip install snakeoil \
&& apk del .build-deps
RUN git+https://anongit.gentoo.org/git/proj/catalyst.git
# 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