STYLE: common.manylinux: Consistently chain commands using post "&&"

This commit is contained in:
Jean-Christophe Fillion-Robin 2018-06-05 01:13:23 -04:00
parent 04841a1de0
commit 1120f1e9a4
No known key found for this signature in database
GPG Key ID: BAF1E1AEB9097A41

View File

@ -5,8 +5,8 @@ COPY \
/dockcross/ /dockcross/
RUN \ RUN \
set -x \ set -x && \
&& yum -y install \ yum -y install \
epel-release \ epel-release \
gpg \ gpg \
zlib-devel \ zlib-devel \
@ -14,12 +14,13 @@ RUN \
openssh-clients \ openssh-clients \
pax \ pax \
zip \ zip \
&& yum clean all && \
&& /dockcross/install-gosu-binary.sh \ yum clean all && \
&& rm /dockcross/install-gosu-binary.sh \ /dockcross/install-gosu-binary.sh && \
rm /dockcross/install-gosu-binary.sh && \
# Remove sudo provided by "devtoolset-2" since it doesn't work with # Remove sudo provided by "devtoolset-2" since it doesn't work with
# our sudo wrapper calling gosu. # our sudo wrapper calling gosu.
&& rm /opt/rh/devtoolset-2/root/usr/bin/sudo \ rm /opt/rh/devtoolset-2/root/usr/bin/sudo && \
&& /dockcross/install-python-packages.sh \ /dockcross/install-python-packages.sh && \
&& rm /dockcross/install-python-packages.sh rm /dockcross/install-python-packages.sh