From 95614e5549aa862324ee67dfd155c74aad09caf1 Mon Sep 17 00:00:00 2001 From: josep-tecnativa Date: Fri, 26 Sep 2025 13:08:36 +0200 Subject: [PATCH] [ADD] Add pgvector library --- Dockerfile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 08b305e..c823d7f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -17,10 +17,12 @@ ENV CERTS="{}" \ WAN_TLS=1 \ WAN_USERS='["all"]' \ HBA_EXTRA_RULES="" -RUN apk add --no-cache python3 \ - && mkdir -p /etc/postgres \ - && chmod a=rwx /etc/postgres -RUN apk add --no-cache py3-netifaces +RUN apk add --no-cache python3 py3-netifaces \ + && if [ "${PG_MAJOR:-0}" -ge 12 ]; then \ + apk add --no-cache postgresql-pgvector; \ + fi \ + && mkdir -p /etc/postgres \ + && chmod a=rwx /etc/postgres COPY autoconf-entrypoint / # Metadata