Fix transform.

This commit is contained in:
Alexis Lahouze 2018-11-26 21:22:34 +01:00
parent 086878f05a
commit f65181f898

View File

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