diff --git a/Dockerfile b/Dockerfile index 42e6bfe..c059c59 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,20 +1,16 @@ ARG PG_MAJOR=16 FROM postgres:$PG_MAJOR ARG PG_MAJOR - -# Test connection -RUN curl https://www.google.com - # 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 && \ - 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 - +RUN 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 && \ + 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 + # PG VECTOR RUN git clone https://github.com/pgvector/pgvector /tmp/build/pgvector && cd /tmp/build/pgvector && \