mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-08 01:58:34 +08:00
enhance: remove gcc from build dockerfile to fix cve (#44881)
Signed-off-by: Zhikun Yao <zhikun.yao@zilliz.com>
This commit is contained in:
parent
3ddf9154ab
commit
3174f517f0
@ -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
|
||||||
|
|||||||
@ -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 && \
|
||||||
|
|||||||
@ -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/*
|
||||||
|
|
||||||
|
|||||||
@ -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/*
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user