2019-04-21 00:02:35 +00:00
|
|
|
#-------------------------------------------------------------------------
|
|
|
|
|
# Copyright(C) 2019 Intel Corporation.
|
|
|
|
|
# Licensed under the MIT License.
|
|
|
|
|
#--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
FROM ubuntu:16.04
|
2019-06-20 16:55:42 +00:00
|
|
|
|
|
|
|
|
ARG ONNXRUNTIME_REPO=https://github.com/Microsoft/onnxruntime
|
2019-11-07 00:54:10 +00:00
|
|
|
ARG ONNXRUNTIME_BRANCH=master
|
2019-04-21 00:02:35 +00:00
|
|
|
|
2019-04-24 17:35:26 +00:00
|
|
|
ENV DEBIAN_FRONTEND noninteractive
|
2019-04-21 00:02:35 +00:00
|
|
|
|
|
|
|
|
RUN apt-get update && \
|
2019-04-24 17:35:26 +00:00
|
|
|
apt-get install -y sudo git bash
|
2019-04-21 00:02:35 +00:00
|
|
|
|
2019-11-06 19:29:55 +00:00
|
|
|
ENV PATH /opt/miniconda/bin:/code/cmake-3.14.3-Linux-x86_64/bin:$PATH
|
|
|
|
|
ENV LD_LIBRARY_PATH=/opt/miniconda/lib:$LD_LIBRARY_PATH
|
|
|
|
|
ENV LANG en_US.UTF-8
|
2019-04-24 17:35:26 +00:00
|
|
|
|
2019-11-06 19:29:55 +00:00
|
|
|
WORKDIR /code
|
2019-11-07 00:54:10 +00:00
|
|
|
RUN git clone --single-branch --branch ${ONNXRUNTIME_BRANCH} --recursive ${ONNXRUNTIME_REPO} onnxruntime && \
|
2019-11-06 19:29:55 +00:00
|
|
|
cp onnxruntime/docs/Privacy.md /code/Privacy.md && \
|
|
|
|
|
cp onnxruntime/dockerfiles/LICENSE-IMAGE.txt /code/LICENSE-IMAGE.txt && \
|
|
|
|
|
cp onnxruntime/ThirdPartyNotices.txt /code/ThirdPartyNotices.txt && \
|
|
|
|
|
/bin/sh onnxruntime/dockerfiles/scripts/install_common_deps.sh && \
|
|
|
|
|
onnxruntime/tools/ci_build/github/linux/docker/scripts/install_ubuntu.sh -p 3.5 && \
|
2020-05-25 00:36:57 +00:00
|
|
|
onnxruntime/build.sh --use_openmp --config RelWithDebInfo --update --build --use_ngraph --build_wheel && \
|
2019-11-06 19:29:55 +00:00
|
|
|
pip install onnxruntime/build/Linux/RelWithDebInfo/dist/*-linux_x86_64.whl && rm -rf /code/onnxruntime /code/cmake-3.14.3-Linux-x86_64
|