Skip to content

Commit c808f23

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

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

Diff for: dockerfiles/Dockerfile.openvino

+5-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.1.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,19 @@ 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 update
38+
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
3839
WORKDIR /
3940
RUN tar cvf GPL_sources.tar.gz /sources
4041

4142
# Deploy stage
42-
FROM openvino/ubuntu20_runtime:${OPENVINO_VERSION}
43+
FROM openvino/ubuntu22_runtime:${OPENVINO_VERSION}
4344

4445
ENV DEBIAN_FRONTEND noninteractive
4546
USER root
4647
COPY --from=builder /home/openvino/onnxruntime/build/Linux/Release/dist/*.whl ./
4748
COPY --from=builder /GPL_sources.tar.gz ./
4849
RUN python3 -m pip install ./*.whl && rm ./*.whl
49-
RUN apt update; apt install -y unattended-upgrades && \
50-
unattended-upgrade
5150
ARG BUILD_UID=1001
5251
ARG BUILD_USER=onnxruntimedev
5352
RUN adduser --uid $BUILD_UID $BUILD_USER

0 commit comments

Comments
 (0)