Skip to content

Commit aae4b1d

Browse files
committed
180 bug fix dockerfile trivy scan alert (#186)
1 parent b77f8f0 commit aae4b1d

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed
Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
# Copyright (C) 2024 Intel Corporation
22
# SPDX-License-Identifier: Apache-2.0
33

4-
FROM openvino/ubuntu22_dev:latest
4+
FROM openvino/ubuntu22_dev:devkit
55

66
COPY npu_container.sh /tmp/npu_container.sh
77

8-
CMD ["/tmp/npu_container.sh"]
8+
USER openvino
9+
10+
CMD ["/tmp/npu_container.sh"]
11+
12+
HEALTHCHECK NONE

platforms/coreultra/mtluh/usecases/openvino/setup.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,15 @@ install_openvino_docker(){
4848
echo -e "\n# Install OpenVINO™ docker image"
4949
if ! docker images | grep openvino/ubuntu22_dev; then
5050
docker pull openvino/ubuntu22_dev:latest
51+
docker tag openvino/ubuntu22_dev:latest openvino/ubuntu22_dev:devkit
5152
else
5253
echo "$S_VALID OpenVINO™ docker image already installed"
5354
fi
5455

5556
echo -e "\n# Build OpenVINO™ with NPU docker image"
5657
if ! docker images | grep openvino_npu/ubuntu22_dev; then
5758
docker build --progress=plain --no-cache -t openvino_npu/ubuntu22_dev:latest -f Dockerfile .
58-
docker rmi openvino/ubuntu22_dev:latest
59+
docker rmi openvino/ubuntu22_dev:devkit openvino/ubuntu22_dev:latest
5960
else
6061
echo "$S_VALID OpenVINO™ with NPU docker image already installed"
6162
fi

0 commit comments

Comments
 (0)