From 15065db1ab24a835e3e8e6e1d564b92aefdbd287 Mon Sep 17 00:00:00 2001 From: ivamp Date: Mon, 6 May 2024 19:51:17 +0800 Subject: [PATCH] update source --- Dockerfile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index fd2b362..28d6bf8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,7 +6,13 @@ ARG PG_MAJOR # Base RUN mkdir -p /tmp/build && apt-get update && \ apt-mark hold locales && \ - apt-get install -y --no-install-recommends build-essential git postgresql-server-dev-$PG_MAJOR + apt-get install -y --no-install-recommends build-essential git postgresql-server-dev-$PG_MAJOR && \ + echo "deb http://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm main contrib non-free non-free-firmware" > /etc/apt/sources.list && \ + echo "deb http://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-updates main contrib non-free non-free-firmware" >> /etc/apt/sources.list && \ + echo "deb http://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-backports main contrib non-free non-free-firmware" >> /etc/apt/sources.list && \ + echo "deb http://mirrors.tuna.tsinghua.edu.cn/debian-security bookworm-security main contrib non-free non-free-firmware" >> /etc/apt/sources.list && \ + rm -rf /etc/apt/sources.list.d/debian.sources + # PG VECTOR RUN git clone https://github.com/pgvector/pgvector /tmp/build/pgvector && cd /tmp/build/pgvector && \