[Snyk] Security upgrade ubuntu from 23.04 to mantic-20231011 (#12308)
* fix: utils/docker/Dockerfile-cpu to reduce vulnerabilities The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-UBUNTU2304-COREUTILS-5484945 - https://snyk.io/vuln/SNYK-UBUNTU2304-GLIBC-5919743 - https://snyk.io/vuln/SNYK-UBUNTU2304-GLIBC-5919743 - https://snyk.io/vuln/SNYK-UBUNTU2304-PROCPS-5816666 - https://snyk.io/vuln/SNYK-UBUNTU2304-XZUTILS-5854648 * Update apt install libgl1-mesa-glx to libgl1 --------- Co-authored-by: snyk-bot <snyk-bot@snyk.io>
This commit is contained in:
1 parent
fd39c2b1d8
commit
6ca8f33796
3 files changed
+4
-4
No files matched your search
@@ -12,7 +12,7 @@ ADD https://ultralytics.com/assets/Arial.ttf https://ultralytics.com/assets/Aria
|
|||||||
ENV DEBIAN_FRONTEND noninteractive
|
ENV DEBIAN_FRONTEND noninteractive
|
||||||
RUN apt update
|
RUN apt update
|
||||||
RUN TZ=Etc/UTC apt install -y tzdata
|
RUN TZ=Etc/UTC apt install -y tzdata
|
||||||
RUN apt install --no-install-recommends -y gcc git zip curl htop libgl1-mesa-glx libglib2.0-0 libpython3-dev gnupg
|
RUN apt install --no-install-recommends -y gcc git zip curl htop libgl1 libglib2.0-0 libpython3-dev gnupg
|
||||||
# RUN alias python=python3
|
# RUN alias python=python3
|
||||||
|
|
||||||
# Security updates
|
# Security updates
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ ADD https://ultralytics.com/assets/Arial.ttf https://ultralytics.com/assets/Aria
|
|||||||
ENV DEBIAN_FRONTEND noninteractive
|
ENV DEBIAN_FRONTEND noninteractive
|
||||||
RUN apt update
|
RUN apt update
|
||||||
RUN TZ=Etc/UTC apt install -y tzdata
|
RUN TZ=Etc/UTC apt install -y tzdata
|
||||||
RUN apt install --no-install-recommends -y python3-pip git zip curl htop gcc libgl1-mesa-glx libglib2.0-0 libpython3-dev
|
RUN apt install --no-install-recommends -y python3-pip git zip curl htop gcc libgl1 libglib2.0-0 libpython3-dev
|
||||||
# RUN alias python=python3
|
# RUN alias python=python3
|
||||||
|
|
||||||
# Install pip packages
|
# Install pip packages
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
# Image is CPU-optimized for ONNX, OpenVINO and PyTorch YOLOv5 deployments
|
# Image is CPU-optimized for ONNX, OpenVINO and PyTorch YOLOv5 deployments
|
||||||
|
|
||||||
# Start FROM Ubuntu image https://hub.docker.com/_/ubuntu
|
# Start FROM Ubuntu image https://hub.docker.com/_/ubuntu
|
||||||
FROM ubuntu:23.04
|
FROM ubuntu:mantic-20231011
|
||||||
|
|
||||||
# Downloads to user config dir
|
# Downloads to user config dir
|
||||||
ADD https://ultralytics.com/assets/Arial.ttf https://ultralytics.com/assets/Arial.Unicode.ttf /root/.config/Ultralytics/
|
ADD https://ultralytics.com/assets/Arial.ttf https://ultralytics.com/assets/Arial.Unicode.ttf /root/.config/Ultralytics/
|
||||||
@@ -11,7 +11,7 @@ ADD https://ultralytics.com/assets/Arial.ttf https://ultralytics.com/assets/Aria
|
|||||||
# Install linux packages
|
# Install linux packages
|
||||||
# g++ required to build 'tflite_support' and 'lap' packages, libusb-1.0-0 required for 'tflite_support' package
|
# g++ required to build 'tflite_support' and 'lap' packages, libusb-1.0-0 required for 'tflite_support' package
|
||||||
RUN apt update \
|
RUN apt update \
|
||||||
&& apt install --no-install-recommends -y python3-pip git zip curl htop libgl1-mesa-glx libglib2.0-0 libpython3-dev gnupg g++ libusb-1.0-0
|
&& apt install --no-install-recommends -y python3-pip git zip curl htop libgl1 libglib2.0-0 libpython3-dev gnupg g++ libusb-1.0-0
|
||||||
# RUN alias python=python3
|
# RUN alias python=python3
|
||||||
|
|
||||||
# Remove python3.11/EXTERNALLY-MANAGED or use 'pip install --break-system-packages' avoid 'externally-managed-environment' Ubuntu nightly error
|
# Remove python3.11/EXTERNALLY-MANAGED or use 'pip install --break-system-packages' avoid 'externally-managed-environment' Ubuntu nightly error
|
||||||
|
|||||||
Reference in new issue
Block a user