gentoo-builder/Dockerfile

30 lines
649 B
Docker
Raw Normal View History

2019-07-11 22:14:07 +02:00
FROM gentoo/stage3-amd64 as base
2018-11-25 22:09:49 +01:00
2019-03-16 10:34:57 +01:00
RUN mkdir /usr/portage && emerge-webrsync \
&& emerge -q dev-util/catalyst \
&& rm -Rf /var/tmp/portage /usr/portage
2018-11-25 18:39:43 +01:00
# 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
2019-01-17 01:59:36 +01:00
# Copy base specs.
COPY stage1.spec stage1.spec
COPY stage2.spec stage2.spec
COPY stage3.spec stage3.spec
2019-03-16 09:41:22 +01:00
# Copy Catalyst configuration
COPY catalyst.conf catalyst.conf
COPY catalystrc catalystrc
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