gentoo-builder/Dockerfile

26 lines
581 B
Docker
Raw Normal View History

2018-11-25 18:39:43 +01:00
FROM python:3.7-alpine
2018-11-25 18:47:23 +01:00
RUN pkg insall git
2018-11-25 18:44:58 +01:00
RUN pip install snakeoil \
git+https://anongit.gentoo.org/git/proj/catalyst.git
2018-11-25 18:39:43 +01:00
# 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
2018-11-04 03:49:15 +01:00
VOLUME /var/lib/catalyst
2018-11-25 18:39:43 +01:00
# Volume for downloaded distfiles
2018-11-04 03:49:15 +01:00
VOLUME /var/cache/portage/distfiles
2018-11-25 18:39:43 +01:00
# Volume for generated packages
2018-11-04 03:49:15 +01:00
VOLUME /var/cache/portage/packages
2018-11-25 18:39:43 +01:00
# The entrypoint…
2018-11-04 03:49:15 +01:00
COPY entrypoint.sh entrypoint.sh
2018-11-25 18:39:43 +01:00
# ... to be called
2018-11-04 03:49:15 +01:00
CMD /entrypoint.sh