FROM postgres:18-trixie RUN apt-get update && \ apt-get install -y --no-install-recommends build-essential git ca-certificates postgresql-server-dev-18 && \ git clone --depth 1 --branch v0.8.7 https://github.com/pgvector/pgvector.git /tmp/pgvector && \ make -C /tmp/pgvector OPTFLAGS="" -j4 && \ make -C /tmp/pgvector install && \ cp "$(pg_config --pkglibdir)/vector.so" "$(pg_config --pkglibdir)/vectorfast.so" && \ rm -rf /tmp/pgvector && \ apt-get remove -y build-essential git postgresql-server-dev-18 && \ apt-get autoremove -y && rm -rf /var/lib/apt/lists/* # The alias lets this unmodified upstream library read the exact same database # fixture as pgvectorfast, whose catalog functions use $libdir/vectorfast.