Skip to content

Commit 6ca8f33

Browse files
[Snyk] Security upgrade ubuntu from 23.04 to mantic-20231011 (ultralytics#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 <[email protected]>
1 parent fd39c2b commit 6ca8f33

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

utils/docker/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ ADD https://ultralytics.com/assets/Arial.ttf https://ultralytics.com/assets/Aria
1212
ENV DEBIAN_FRONTEND noninteractive
1313
RUN apt update
1414
RUN TZ=Etc/UTC apt install -y tzdata
15-
RUN apt install --no-install-recommends -y gcc git zip curl htop libgl1-mesa-glx libglib2.0-0 libpython3-dev gnupg
15+
RUN apt install --no-install-recommends -y gcc git zip curl htop libgl1 libglib2.0-0 libpython3-dev gnupg
1616
# RUN alias python=python3
1717

1818
# Security updates

utils/docker/Dockerfile-arm64

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ ADD https://ultralytics.com/assets/Arial.ttf https://ultralytics.com/assets/Aria
1212
ENV DEBIAN_FRONTEND noninteractive
1313
RUN apt update
1414
RUN TZ=Etc/UTC apt install -y tzdata
15-
RUN apt install --no-install-recommends -y python3-pip git zip curl htop gcc libgl1-mesa-glx libglib2.0-0 libpython3-dev
15+
RUN apt install --no-install-recommends -y python3-pip git zip curl htop gcc libgl1 libglib2.0-0 libpython3-dev
1616
# RUN alias python=python3
1717

1818
# Install pip packages

utils/docker/Dockerfile-cpu

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
# Image is CPU-optimized for ONNX, OpenVINO and PyTorch YOLOv5 deployments
44

55
# Start FROM Ubuntu image https://hub.docker.com/_/ubuntu
6-
FROM ubuntu:23.04
6+
FROM ubuntu:mantic-20231011
77

88
# Downloads to user config dir
99
ADD https://ultralytics.com/assets/Arial.ttf https://ultralytics.com/assets/Arial.Unicode.ttf /root/.config/Ultralytics/
1010

1111
# Install linux packages
1212
# g++ required to build 'tflite_support' and 'lap' packages, libusb-1.0-0 required for 'tflite_support' package
1313
RUN apt update \
14-
&& 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
14+
&& apt install --no-install-recommends -y python3-pip git zip curl htop libgl1 libglib2.0-0 libpython3-dev gnupg g++ libusb-1.0-0
1515
# RUN alias python=python3
1616

1717
# Remove python3.11/EXTERNALLY-MANAGED or use 'pip install --break-system-packages' avoid 'externally-managed-environment' Ubuntu nightly error

0 commit comments

Comments
 (0)