enhance: remove gcc from build dockerfile to fix cve (#44881)

Signed-off-by: Zhikun Yao <zhikun.yao@zilliz.com>
This commit is contained in:
zhikunyao 2025-10-20 09:44:01 +08:00 committed by GitHub
parent 3ddf9154ab
commit 3174f517f0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 4 additions and 4 deletions

View File

@ -14,7 +14,7 @@ FROM amazonlinux:2023
ARG TARGETARCH ARG TARGETARCH
ARG MILVUS_ASAN_LIB ARG MILVUS_ASAN_LIB
RUN yum install -y wget libgomp libaio libatomic openblas-devel gcc gcc-c++ && \ RUN yum install -y wget libgomp libaio libatomic openblas-devel && \
rm -rf /var/cache/yum/* rm -rf /var/cache/yum/*
# Add Tini # Add Tini

View File

@ -15,7 +15,7 @@ FROM rockylinux/rockylinux:8
ARG TARGETARCH ARG TARGETARCH
ARG MILVUS_ASAN_LIB ARG MILVUS_ASAN_LIB
RUN dnf install -y wget libgomp libaio libatomic gcc gcc-c++ RUN dnf install -y wget libgomp libaio libatomic
# install openblas-devel # install openblas-devel
RUN dnf -y install dnf-plugins-core && \ RUN dnf -y install dnf-plugins-core && \

View File

@ -19,7 +19,7 @@ RUN apt-get update && \
apt-get install -y --no-install-recommends ca-certificates && \ apt-get install -y --no-install-recommends ca-certificates && \
sed -i 's/http:/https:/g' /etc/apt/sources.list && \ sed -i 's/http:/https:/g' /etc/apt/sources.list && \
apt-get update && \ apt-get update && \
apt-get install -y --no-install-recommends curl libaio-dev libgomp1 libopenblas-dev gcc g++ && \ apt-get install -y --no-install-recommends curl libaio-dev libgomp1 libopenblas-dev && \
apt-get remove --purge -y && \ apt-get remove --purge -y && \
rm -rf /var/lib/apt/lists/* rm -rf /var/lib/apt/lists/*

View File

@ -19,7 +19,7 @@ RUN apt-get update && \
apt-get install -y --no-install-recommends ca-certificates && \ apt-get install -y --no-install-recommends ca-certificates && \
sed -i 's/http:/https:/g' /etc/apt/sources.list && \ sed -i 's/http:/https:/g' /etc/apt/sources.list && \
apt-get update && \ apt-get update && \
apt-get install -y --no-install-recommends curl libaio-dev libgomp1 libopenblas-dev gcc g++ && \ apt-get install -y --no-install-recommends curl libaio-dev libgomp1 libopenblas-dev && \
apt-get remove --purge -y && \ apt-get remove --purge -y && \
rm -rf /var/lib/apt/lists/* rm -rf /var/lib/apt/lists/*