From 5bbb868b6f88bd36231fc0ff085224299c784d13 Mon Sep 17 00:00:00 2001 From: Alexis Lahouze Date: Sun, 25 Nov 2018 18:44:58 +0100 Subject: [PATCH] Install directly from git repository. --- Dockerfile | 32 ++------------------------------ 1 file changed, 2 insertions(+), 30 deletions(-) diff --git a/Dockerfile b/Dockerfile index 245e334..538d292 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,35 +1,7 @@ -FROM python:3.7-alpine as base - -ARG CATALYST_VERSION - -RUN git clone https://anongit.gentoo.org/git/proj/catalyst.git catalyst - -RUN pip install snakeoil - -WORKDIR catalyst - -RUN python -m setup install - FROM python:3.7-alpine - -# Copy snakeoil files -COPY --from=base /usr/lib/python3.7/site-packages/snakeoil \ - /usr/lib/python3.7/site-packages/ - - -# Copy Catalyst library files -COPY --from=base /usr/lib/python3.7/site-packages/catalyst \ - /usr/lib/python3.7/site-packages/ - -# Copy Catalyst shared files -COPY --from=base /usr/share/catalyst /usr/share/ - -# Copy Catalyst configuration files -COPY --from=base /etc/catalyst /etc/ - -# Copy Catalyst binary -COPY --from=base /usr/bin/catalyst /usr/bin/ +RUN pip install snakeoil \ + git+https://anongit.gentoo.org/git/proj/catalyst.git # Override Stage3 preclean to add perl-cleaner invocation COPY stage3-preclean-chroot.sh \