gentoo-builder/Dockerfile

42 lines
960 B
Docker
Raw Normal View History

2019-03-16 10:02:07 +01:00
FROM gentoo/stage3-amd64-hardened as base
2018-11-25 22:09:49 +01:00
2019-03-16 10:02:07 +01:00
RUN mkdir /usr/portage && emerge-webrsync
2018-11-25 22:09:49 +01:00
RUN mkdir /tmp/root && emerge -q --root=/tmp/root dev-util/catalyst
2018-11-26 01:03:46 +01:00
2019-03-16 10:02:07 +01:00
FROM gentoo/stage3-amd64-hardened
2018-11-26 00:46:48 +01:00
2019-03-16 10:02:07 +01:00
# Copy needed files
COPY --from=base /tmp/root/* /
#COPY --from=base /etc /etc
#COPY --from=base /usr/bin /usr/bin
#COPY --from=base /usr/include /usr/include
#COPY --from=base /usr/lib /usr/lib
#COPY --from=base /usr/lib64 /usr/lib64
#COPY --from=base /usr/share /usr/share
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