From 5d27541af9ed200f1d470cd55e6a367f8ce7711d Mon Sep 17 00:00:00 2001 From: JordiMForgeFlow Date: Mon, 27 Oct 2025 11:30:37 +0100 Subject: [PATCH] [FIX] pgvector files: copy extension files to /local/ folder pgvector library files are stored under /usr/share and /usr/lib, but postgres is looking for extension files under /usr/local/share and /usr/local/lib. With this change we move the extension files to the expected directories. --- Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index c823d7f..7737d53 100644 --- a/Dockerfile +++ b/Dockerfile @@ -20,6 +20,8 @@ ENV CERTS="{}" \ RUN apk add --no-cache python3 py3-netifaces \ && if [ "${PG_MAJOR:-0}" -ge 12 ]; then \ apk add --no-cache postgresql-pgvector; \ + cp /usr/share/postgresql/extension/vector* /usr/local/share/postgresql/extension/; \ + cp /usr/lib/postgresql17/vector.so /usr/local/lib/postgresql/; \ fi \ && mkdir -p /etc/postgres \ && chmod a=rwx /etc/postgres