update source

This commit is contained in:
ivamp 2024-05-06 19:51:17 +08:00
parent 38a4b036d5
commit 15065db1ab

View File

@ -6,7 +6,13 @@ ARG PG_MAJOR
# Base # Base
RUN mkdir -p /tmp/build && apt-get update && \ RUN mkdir -p /tmp/build && apt-get update && \
apt-mark hold locales && \ 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 # PG VECTOR
RUN git clone https://github.com/pgvector/pgvector /tmp/build/pgvector && cd /tmp/build/pgvector && \ RUN git clone https://github.com/pgvector/pgvector /tmp/build/pgvector && cd /tmp/build/pgvector && \