forked from microsoft/onnxruntime
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.arm32v7
33 lines (24 loc) · 896 Bytes
/
Dockerfile.arm32v7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
FROM arm32v7/ubuntu:16.04
RUN apt-get update && apt-get install -y sudo build-essential curl libcurl4-openssl-dev libssl-dev wget python3 python3-pip python3-dev git
RUN pip3 install numpy
# Build the latest cmake
WORKDIR /code
RUN wget https://cmake.org/files/v3.12/cmake-3.12.3.tar.gz;
RUN tar zxf cmake-3.12.3.tar.gz
WORKDIR /code/cmake-3.12.3
RUN ./configure --system-curl
RUN make
RUN sudo make install
# Prepare onnxruntime Repo
RUN git clone --recursive https://github.com/Microsoft/onnxruntime
WORKDIR /code/onnxruntime
ARG BUILDTYPE=Debug
# Start the basic build
RUN ./build.sh --config ${BUILDTYPE}
# Build Shared Library
RUN ./build.sh --config ${BUILDTYPE} --build_shared_lib
# Build Python Binding
RUN ./build.sh --config ${BUILDTYPE} --enable_pybind
# Build Output
RUN ls -l /code/onnxruntime/build/Linux/Debug/*.so
RUN ls -l /code/onnxruntime/build/Linux/Debug/dist/*.whl