test source
This commit is contained in:
parent
dbe4df4af2
commit
dce02e74d4
22
Dockerfile
22
Dockerfile
@ -1,20 +1,16 @@
|
|||||||
ARG PG_MAJOR=16
|
ARG PG_MAJOR=16
|
||||||
FROM postgres:$PG_MAJOR
|
FROM postgres:$PG_MAJOR
|
||||||
ARG PG_MAJOR
|
ARG PG_MAJOR
|
||||||
|
|
||||||
# Test connection
|
|
||||||
RUN curl https://www.google.com
|
|
||||||
|
|
||||||
# Base
|
# Base
|
||||||
RUN mkdir -p /tmp/build && apt-get update && \
|
RUN echo "deb http://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm main contrib non-free non-free-firmware" > /etc/apt/sources.list && \
|
||||||
apt-mark hold locales && \
|
echo "deb http://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-updates main contrib non-free non-free-firmware" >> /etc/apt/sources.list && \
|
||||||
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-backports main contrib non-free non-free-firmware" >> /etc/apt/sources.list && \
|
||||||
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-security bookworm-security 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 && \
|
rm -rf /etc/apt/sources.list.d/debian.sources && \
|
||||||
echo "deb http://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-backports main contrib non-free non-free-firmware" >> /etc/apt/sources.list && \
|
mkdir -p /tmp/build && apt-get update && \
|
||||||
echo "deb http://mirrors.tuna.tsinghua.edu.cn/debian-security bookworm-security main contrib non-free non-free-firmware" >> /etc/apt/sources.list && \
|
apt-mark hold locales && \
|
||||||
rm -rf /etc/apt/sources.list.d/debian.sources
|
apt-get install -y --no-install-recommends build-essential git postgresql-server-dev-$PG_MAJOR
|
||||||
|
|
||||||
|
|
||||||
# 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 && \
|
||||||
|
Loading…
Reference in New Issue
Block a user