onnxruntime/tools/ci_build/github/linux/docker/Dockerfile.ubuntu_server
Changming Sun ed2d441a2e
Update ORT server build pipeline (#7030)
1. Migrated it to Ed's new docker build script
2. Use python 3.6 instead, because it is the default one in ubuntu 18.04
3. Move the "pip install" command to the docker image build stage(instead of when running the image)
2021-03-16 18:02:09 -07:00

17 lines
449 B
Text

ARG OS_VERSION=18.04
FROM ubuntu:${OS_VERSION}
ARG PYTHON_VERSION=3.6
ADD scripts /tmp/scripts
RUN /tmp/scripts/install_ubuntu.sh -p $PYTHON_VERSION && /tmp/scripts/install_server_deps.sh && rm -rf /tmp/scripts
WORKDIR /root
ENV PATH /usr/local/go/bin:$PATH
ARG BUILD_UID=1000
ARG BUILD_USER=onnxruntimedev
RUN adduser --gecos 'onnxruntime Build User' --disabled-password $BUILD_USER --uid $BUILD_UID
WORKDIR /home/$BUILD_USER
USER $BUILD_USER