enhance: base images use https to install apt package 2.5 (#44420)

pr: #44382

Signed-off-by: Zhikun Yao <zhikun.yao@zilliz.com>
This commit is contained in:
zhikunyao 2025-09-18 10:58:01 +08:00 committed by GitHub
parent 124a1b3ce4
commit 94b1d66535
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 15 additions and 3 deletions

View File

@ -2,8 +2,12 @@ FROM nvidia/cuda:11.8.0-runtime-ubuntu22.04
ARG TARGETARCH
# Install ca-certificates first, then switch to HTTPS and install other packages
RUN apt-get update && \
apt-get install -y --no-install-recommends curl ca-certificates libaio-dev libgomp1 libopenblas-dev && \
apt-get install -y --no-install-recommends ca-certificates && \
sed -i 's/http:/https:/g' /etc/apt/sources.list && \
apt-get update && \
apt-get install -y --no-install-recommends curl libaio-dev libgomp1 libopenblas-dev && \
apt-get remove --purge -y && \
rm -rf /var/lib/apt/lists/*

View File

@ -14,8 +14,12 @@ FROM ubuntu:focal-20240530
ARG TARGETARCH
ARG MILVUS_ASAN_LIB
# Install ca-certificates first, then switch to HTTPS and install other packages
RUN apt-get update && \
apt-get install -y --no-install-recommends curl ca-certificates libaio-dev libgomp1 libopenblas-dev && \
apt-get install -y --no-install-recommends ca-certificates && \
sed -i 's/http:/https:/g' /etc/apt/sources.list && \
apt-get update && \
apt-get install -y --no-install-recommends curl libaio-dev libgomp1 libopenblas-dev && \
apt-get remove --purge -y && \
rm -rf /var/lib/apt/lists/*

View File

@ -14,8 +14,12 @@ FROM ubuntu:jammy-20240530
ARG TARGETARCH
ARG MILVUS_ASAN_LIB
# Install ca-certificates first, then switch to HTTPS and install other packages
RUN apt-get update && \
apt-get install -y --no-install-recommends curl ca-certificates libaio-dev libgomp1 libopenblas-dev && \
apt-get install -y --no-install-recommends ca-certificates && \
sed -i 's/http:/https:/g' /etc/apt/sources.list && \
apt-get update && \
apt-get install -y --no-install-recommends curl libaio-dev libgomp1 libopenblas-dev && \
apt-get remove --purge -y && \
rm -rf /var/lib/apt/lists/*