Fix python module extraction.

This commit is contained in:
Alexis Lahouze 2018-11-26 09:08:25 +01:00
parent cbff816b64
commit e99a0fc2c6

View File

@ -12,7 +12,7 @@ WORKDIR snakeoil
RUN python -m setup bdist
WORKDIR /
RUN tar xvzf snakeoil/dist/snakeoil-*.tar.gz
RUN tar xvzf snakeoil/dist/snakeoil-*.tar.gz --transform 's/usr\/local/usr'
# Build and install pyDeComp
RUN git clone https://github.com/dol-sen/pyDeComp pydecomp
@ -21,7 +21,7 @@ WORKDIR pydecomp
RUN python -m setup bdist
WORKDIR /
RUN tar xvzf pydecomp/dist/pyDeComp-*.tar.gz
RUN tar xvzf pydecomp/dist/pyDeComp-*.tar.gz --transform 's/usr\/local/usr'
# Clone catalyst repository
RUN git clone https://anongit.gentoo.org/git/proj/catalyst.git catalyst
@ -53,14 +53,16 @@ RUN apt-get update \
#RUN apk add coreutils
COPY --from=base /snakeoil/dist/snakeoil-*.tar.gz ./
RUN tar xvzf snakeoil-*.tar.gz && rm snakeoil-*.tar.gz
RUN tar xvzf snakeoil-*.tar.gz --transform 's/usr\/local/usr' \
&& rm snakeoil-*.tar.gz
COPY --from=base /pydecomp/dist/pyDeComp-*.tar.gz ./
RUN tar xvzf pyDeComp-*.tar.gz && rm pyDeComp-*.tar.gz
RUN tar xvzf pyDeComp-*.tar.gz --transform 's/usr\/local/usr' \
&& rm pyDeComp-*.tar.gz
COPY --from=base /catalyst/dist/catalyst-*.tar.gz ./
RUN tar xvzf catalyst-*.tar.gz && rm catalyst-*.tar.gz \
--transform 's/usr\/local/usr'
RUN tar xvzf catalyst-*.tar.gz --transform 's/usr\/local/usr'
&& rm catalyst-*.tar.gz \
COPY --from=base /usr/local/bin/shash /usr/local/bin/shash