2021-08-11 22:25:04 +00:00
|
|
|
# --------------------------------------------------------------
|
|
|
|
|
# Copyright (c) Microsoft Corporation. All rights reserved.
|
|
|
|
|
# Licensed under the MIT License.
|
|
|
|
|
# --------------------------------------------------------------
|
|
|
|
|
# Dockerfile to run ONNXRuntime with source build for CPU
|
2019-04-03 21:45:24 +00:00
|
|
|
|
2021-08-11 22:25:04 +00:00
|
|
|
FROM arm32v7/fedora:34
|
|
|
|
|
MAINTAINER Changming Sun "chasun@microsoft.com"
|
|
|
|
|
ADD . /code
|
2019-06-20 16:55:42 +00:00
|
|
|
|
2022-01-25 03:06:09 +00:00
|
|
|
RUN /code/dockerfiles/scripts/install_fedora_arm32.sh
|
|
|
|
|
RUN cd /code && ./build.sh --skip_submodule_sync --config Release --build_wheel --update --build --parallel --cmake_extra_defines ONNXRUNTIME_VERSION=$(cat ./VERSION_NUMBER)
|
2019-04-03 21:45:24 +00:00
|
|
|
|
2021-08-11 22:25:04 +00:00
|
|
|
FROM arm64v8/centos:7
|
|
|
|
|
COPY --from=0 /code/build/Linux/Release/dist /root
|
|
|
|
|
COPY --from=0 /code/dockerfiles/LICENSE-IMAGE.txt /code/LICENSE-IMAGE.txt
|
2022-01-25 03:06:09 +00:00
|
|
|
RUN yum install -y python3-wheel python3-pip && python3 -m pip install --upgrade pip && python3 -m pip install /root/*.whl && rm -rf /root/*.whl
|