Try another way to build and install catalyst.

This commit is contained in:
Alexis Lahouze 2019-03-16 10:21:10 +01:00
parent c699caf415
commit b77074b975

View File

@ -2,18 +2,19 @@ FROM gentoo/stage3-amd64-hardened as base
RUN mkdir /usr/portage && emerge-webrsync
RUN emerge dev-util/catalyst
RUN quickpkg dev-util/catalyst
RUN mkdir /tmp/root && emerge -q --root=/tmp/root dev-util/catalyst
FROM gentoo/stage3-amd64-hardened
# Copy needed files
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
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
# Volume for catalyst generated files
VOLUME /var/lib/catalyst