Simplifies again Dockerfile.

This commit is contained in:
Alexis Lahouze 2019-03-16 10:34:57 +01:00
parent b77074b975
commit a5be42521f

View File

@ -1,20 +1,8 @@
FROM gentoo/stage3-amd64-hardened as base FROM gentoo/stage3-amd64-hardened as base
RUN mkdir /usr/portage && emerge-webrsync RUN mkdir /usr/portage && emerge-webrsync \
&& emerge -q dev-util/catalyst \
RUN mkdir /tmp/root && emerge -q --root=/tmp/root dev-util/catalyst && rm -Rf /var/tmp/portage /usr/portage
FROM gentoo/stage3-amd64-hardened
# 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
# Volume for catalyst generated files # Volume for catalyst generated files
VOLUME /var/lib/catalyst VOLUME /var/lib/catalyst