common.docker: Optimize image size installing "conan" in existing RUN command

This commit is contained in:
Jean-Christophe Fillion-Robin 2018-06-04 23:35:59 -04:00
parent 4dd933c35b
commit 6ac8097064
No known key found for this signature in database
GPG Key ID: BAF1E1AEB9097A41

View File

@ -38,7 +38,9 @@ RUN \
/dockcross/build-and-install-cmake.sh \
/dockcross/install-cmake-binary.sh \
/dockcross/build-and-install-curl.sh \
/dockcross/build-and-install-ninja.sh
/dockcross/build-and-install-ninja.sh \
&& \
${PYTHON} -m pip install --ignore-installed conan
COPY imagefiles/cmake.sh /usr/local/bin/cmake
COPY imagefiles/ccmake.sh /usr/local/bin/ccmake
@ -52,8 +54,6 @@ RUN if [ -e /opt/python/cp35-cp35m/bin/python ]; then \
rm get-pip.py || exit 1; \
fi
RUN $([ -e /opt/python/cp35-cp35m/bin/python ] && echo "/opt/python/cp35-cp35m/bin/python" || echo "python") -m pip install --ignore-installed conan
WORKDIR /usr/share
RUN git clone "https://github.com/nojhan/liquidprompt.git" && \
cd liquidprompt && \