Skip to content

Commit 00f45d6

Browse files
Updated the script for ubuntu 22
1 parent 0f3ea0e commit 00f45d6

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

dockerfiles/Dockerfile.openvino

+4-6
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
# SPDX-License-Identifier: MIT
44
#--------------------------------------------------------------------------
55

6-
ARG OPENVINO_VERSION=2024.0.0
6+
ARG OPENVINO_VERSION=2024.2.0
77

88

99
# Build stage
10-
FROM openvino/ubuntu20_runtime:${OPENVINO_VERSION} AS builder
10+
FROM openvino/ubuntu22_runtime:${OPENVINO_VERSION} AS builder
1111

1212
ENV WORKDIR_PATH=/home/openvino
1313
WORKDIR $WORKDIR_PATH
@@ -34,20 +34,18 @@ RUN cat /etc/apt/sources.list | sed 's/^# deb-src/deb-src/g' > ./temp; mv temp /
3434
RUN apt update; apt install dpkg-dev
3535
RUN mkdir /sources
3636
WORKDIR /sources
37-
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
37+
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
3838
WORKDIR /
3939
RUN tar cvf GPL_sources.tar.gz /sources
4040

4141
# Deploy stage
42-
FROM openvino/ubuntu20_runtime:${OPENVINO_VERSION}
42+
FROM openvino/ubuntu22_runtime:${OPENVINO_VERSION}
4343

4444
ENV DEBIAN_FRONTEND noninteractive
4545
USER root
4646
COPY --from=builder /home/openvino/onnxruntime/build/Linux/Release/dist/*.whl ./
4747
COPY --from=builder /GPL_sources.tar.gz ./
4848
RUN python3 -m pip install ./*.whl && rm ./*.whl
49-
RUN apt update; apt install -y unattended-upgrades && \
50-
unattended-upgrade
5149
ARG BUILD_UID=1001
5250
ARG BUILD_USER=onnxruntimedev
5351
RUN adduser --uid $BUILD_UID $BUILD_USER

0 commit comments

Comments
 (0)