Use && instead of ; in Dockerfile steps

This commit is contained in:
Peter Dave Hello 2018-03-18 14:12:41 +08:00
parent 75fec2927a
commit e1570a2a5b

View file

@ -27,16 +27,16 @@ MAINTAINER Marko Viitanen <fador@iki.fi>
RUN apt-get update \ RUN apt-get update \
&& apt-get install -y $REQUIRED_PACKAGES \ && apt-get install -y $REQUIRED_PACKAGES \
&& apt-get clean \ && apt-get clean \
&& git clone --depth=1 git://github.com/ultravideo/kvazaar.git; \ && git clone --depth=1 git://github.com/ultravideo/kvazaar.git \
cd kvazaar; \ && cd kvazaar \
./autogen.sh; \ && ./autogen.sh \
./configure --disable-shared;\ && ./configure --disable-shared \
make;\ && make\
make install; \ && make install \
AUTOINSTALLED_PACKAGES=`apt-mark showauto`; \ && AUTOINSTALLED_PACKAGES=`apt-mark showauto` \
apt-get remove --purge --force-yes -y $REQUIRED_PACKAGES $AUTOINSTALLED_PACKAGES; \ && apt-get remove --purge --force-yes -y $REQUIRED_PACKAGES $AUTOINSTALLED_PACKAGES \
apt-get clean autoclean; \ && apt-get clean autoclean \
apt-get autoremove -y; \ && apt-get autoremove -y \
rm -rf /var/lib/{apt,dpkg,cache,log}/ && rm -rf /var/lib/{apt,dpkg,cache,log}/
ENTRYPOINT ["kvazaar"] ENTRYPOINT ["kvazaar"]
CMD ["--help"] CMD ["--help"]