onnxruntime/tools/ci_build/github/linux/docker/Dockerfile.centos
2019-10-03 11:46:27 -07:00

12 lines
351 B
Text
Executable file

ARG OS_VERSION=7
FROM centos:${OS_VERSION}
ARG PYTHON_VERSION
ADD scripts /tmp/scripts
RUN cd /tmp/scripts && /tmp/scripts/install_centos.sh && /tmp/scripts/install_deps.sh -p $PYTHON_VERSION && rm -rf /tmp/scripts
ARG BUILD_UID=1000
ARG BUILD_USER=onnxruntimedev
RUN adduser --uid $BUILD_UID $BUILD_USER
WORKDIR /home/$BUILD_USER
USER $BUILD_USER