From 4eda08534fa2e8a42bf131c8428979355ef13021 Mon Sep 17 00:00:00 2001 From: zhijxu Date: Wed, 23 Oct 2019 01:41:56 +0000 Subject: [PATCH] make smaller step in Dockerfile so image layers can be reused as much as possible --- dockerfiles/Dockerfile.source | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dockerfiles/Dockerfile.source b/dockerfiles/Dockerfile.source index 7da71b1a20..170cc1eb92 100644 --- a/dockerfiles/Dockerfile.source +++ b/dockerfiles/Dockerfile.source @@ -19,8 +19,9 @@ ENV PATH /opt/miniconda/bin:/code/cmake-3.14.3-Linux-x86_64/bin:${PATH} # Prepare onnxruntime repository & build onnxruntime RUN git clone --single-branch --branch ${ONNXRUNTIME_SERVER_BRANCH} --recursive ${ONNXRUNTIME_REPO} onnxruntime &&\ - /bin/sh onnxruntime/dockerfiles/scripts/install_common_deps.sh &&\ - cd onnxruntime &&\ + /bin/sh onnxruntime/dockerfiles/scripts/install_common_deps.sh + +RUN cd onnxruntime &&\ /bin/sh ./build.sh --config Release --build_wheel --update --build --cmake_extra_defines ONNXRUNTIME_VERSION=$(cat ./VERSION_NUMBER) &&\ pip install /code/onnxruntime/build/Linux/Release/dist/*.whl &&\ cd .. &&\