Skip to content

Commit

Permalink
Updated the script for ubuntu 22
Browse files Browse the repository at this point in the history
  • Loading branch information
jatinwadhwa921 committed Jul 17, 2024
1 parent 0f3ea0e commit c808f23
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions dockerfiles/Dockerfile.openvino
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
# SPDX-License-Identifier: MIT
#--------------------------------------------------------------------------

ARG OPENVINO_VERSION=2024.0.0
ARG OPENVINO_VERSION=2024.1.0


# Build stage
FROM openvino/ubuntu20_runtime:${OPENVINO_VERSION} AS builder
FROM openvino/ubuntu22_runtime:${OPENVINO_VERSION} AS builder

ENV WORKDIR_PATH=/home/openvino
WORKDIR $WORKDIR_PATH
Expand All @@ -34,20 +34,19 @@ RUN cat /etc/apt/sources.list | sed 's/^# deb-src/deb-src/g' > ./temp; mv temp /
RUN apt update; apt install dpkg-dev
RUN mkdir /sources
WORKDIR /sources
RUN apt-get source cron iso-codes lsb-release powermgmt-base python-apt-common python3-apt python3-dbus python3-gi unattended-upgrades libapt-pkg6.0 libhogweed5 libnettle7
RUN apt update
RUN apt-get source cron iso-codes lsb-release powermgmt-base python-apt-common python3-apt python3-dbus python3-gi libapt-pkg6.0 libhogweed6 libnettle8
WORKDIR /
RUN tar cvf GPL_sources.tar.gz /sources

# Deploy stage
FROM openvino/ubuntu20_runtime:${OPENVINO_VERSION}
FROM openvino/ubuntu22_runtime:${OPENVINO_VERSION}

ENV DEBIAN_FRONTEND noninteractive
USER root
COPY --from=builder /home/openvino/onnxruntime/build/Linux/Release/dist/*.whl ./
COPY --from=builder /GPL_sources.tar.gz ./
RUN python3 -m pip install ./*.whl && rm ./*.whl
RUN apt update; apt install -y unattended-upgrades && \
unattended-upgrade
ARG BUILD_UID=1001
ARG BUILD_USER=onnxruntimedev
RUN adduser --uid $BUILD_UID $BUILD_USER
Expand Down

0 comments on commit c808f23

Please sign in to comment.