gentoo-builder/Dockerfile
2018-11-04 03:49:15 +01:00

25 lines
661 B
Docker

# name the portage image
FROM gentoo/portage:latest as portage
# image is based on stage3-amd64
FROM gentoo/stage3-amd64:latest as stage3
# copy the entire portage volume in
COPY --from=portage /usr/portage /usr/portage
ARG MAKEOPTS
ARG EMERGE_OPTS=-qv
# Install needed packages
RUN MAKEOPTS=$MAKEOPTS emerge $EMERGE_OPTS dev-util/catalyst
COPY stage3-preclean-chroot.sh /usr/share/catalyst/targets/stage3/stage3-preclean-chroot.sh
COPY stage4-chroot.sh /usr/share/catalyst/targets/stage4/stage4-chroot.sh
VOLUME /var/lib/catalyst
VOLUME /var/cache/portage/distfiles
VOLUME /var/cache/portage/packages
COPY entrypoint.sh entrypoint.sh
CMD /entrypoint.sh