Skip to content

Commit

Permalink
merge two RUN to avoid making docker image too larger
Browse files Browse the repository at this point in the history
  • Loading branch information
zhijxu-MS authored and snnn committed Oct 30, 2019
1 parent 7b11f05 commit 8dabe05
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions dockerfiles/Dockerfile.source
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,8 @@ 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

RUN cd onnxruntime &&\
/bin/sh onnxruntime/dockerfiles/scripts/install_common_deps.sh &&\
cd onnxruntime &&\
/bin/sh ./build.sh --config Release --build_wheel --update --build --parallel --cmake_extra_defines ONNXRUNTIME_VERSION=$(cat ./VERSION_NUMBER) &&\
pip install /code/onnxruntime/build/Linux/Release/dist/*.whl &&\
cd .. &&\
Expand Down

0 comments on commit 8dabe05

Please sign in to comment.