30 lines
649 B
Docker
30 lines
649 B
Docker
FROM gentoo/stage3-amd64 as base
|
|
|
|
RUN mkdir /usr/portage && emerge-webrsync \
|
|
&& emerge -q dev-util/catalyst \
|
|
&& rm -Rf /var/tmp/portage /usr/portage
|
|
|
|
# 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
|
|
|
|
# Copy base specs.
|
|
COPY stage1.spec stage1.spec
|
|
COPY stage2.spec stage2.spec
|
|
COPY stage3.spec stage3.spec
|
|
|
|
# Copy Catalyst configuration
|
|
COPY catalyst.conf catalyst.conf
|
|
COPY catalystrc catalystrc
|
|
|
|
# The entrypoint…
|
|
COPY entrypoint.sh entrypoint.sh
|
|
|
|
# ... to be called
|
|
CMD /entrypoint.sh
|