-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Dockerfile and page for ARM builds. (#83)
- Loading branch information
1 parent
1e59b6f
commit 37385ec
Showing
3 changed files
with
41 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
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 | ||
# WORKDIR /code/onnxruntime | ||
# 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 |