Install directly from git repository.

This commit is contained in:
Alexis Lahouze 2018-11-25 18:44:58 +01:00
parent 8d2d96b871
commit 5bbb868b6f

View File

@ -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 \