mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-16 21:00:14 +00:00
* Update cuda for python wheels * Update cuda for python wheels * Update cuda for python wheels * Update azure-pipelines-py-packaging.yml * Update to cuda 10 * Only test win gpu * Update cuda for python wheels * Use manylinux2010 image to build linux python wheels Allow wheels built to truly be compliant with a manylinux policy
31 lines
1.1 KiB
Text
31 lines
1.1 KiB
Text
FROM quay.io/pypa/manylinux2010_x86_64:latest
|
|
|
|
ARG PYTHON_VERSION=3.5
|
|
|
|
ADD scripts/install_manylinux2010.sh /tmp/scripts/install_manylinux2010.sh
|
|
RUN /tmp/scripts/install_manylinux2010.sh -p ${PYTHON_VERSION}
|
|
ADD scripts/install_protobuf.sh /tmp/scripts/install_protobuf.sh
|
|
RUN (source /opt/onnxruntime-python/bin/activate; pip install cmake && /tmp/scripts/install_protobuf.sh && pip uninstall -y cmake)
|
|
ADD scripts /tmp/scripts
|
|
RUN (source /opt/onnxruntime-python/bin/activate; /tmp/scripts/install_deps.sh)
|
|
RUN rm -rf /tmp/scripts # not useful at all except not to see the scripts
|
|
|
|
RUN echo "#!/bin/bash" > /opt/entrypoint.sh && \
|
|
echo "set -e" >> /opt/entrypoint.sh && \
|
|
echo "source /opt/onnxruntime-python/bin/activate" >> /opt/entrypoint.sh && \
|
|
echo "exec \"\$@\"" >> /opt/entrypoint.sh
|
|
RUN cat /opt/entrypoint.sh
|
|
RUN chmod +x /opt/entrypoint.sh
|
|
|
|
WORKDIR /root
|
|
|
|
ENV LD_LIBRARY_PATH /usr/local/openblas/lib:$LD_LIBRARY_PATH
|
|
|
|
ARG BUILD_UID=1000
|
|
ARG BUILD_USER=onnxruntimedev
|
|
WORKDIR /home/$BUILD_USER
|
|
# --disabled-password
|
|
RUN adduser --comment 'onnxruntime Build User' $BUILD_USER --uid $BUILD_UID
|
|
USER $BUILD_USER
|
|
|
|
ENTRYPOINT ["/opt/entrypoint.sh"]
|