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 FROM python:3.7-alpine
RUN pip install snakeoil \
# Copy snakeoil files git+https://anongit.gentoo.org/git/proj/catalyst.git
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/
# Override Stage3 preclean to add perl-cleaner invocation # Override Stage3 preclean to add perl-cleaner invocation
COPY stage3-preclean-chroot.sh \ COPY stage3-preclean-chroot.sh \