Skip to content

Commit 95614e5

Browse files
[ADD] Add pgvector library
1 parent e21fcfe commit 95614e5

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

Dockerfile

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,12 @@ ENV CERTS="{}" \
1717
WAN_TLS=1 \
1818
WAN_USERS='["all"]' \
1919
HBA_EXTRA_RULES=""
20-
RUN apk add --no-cache python3 \
21-
&& mkdir -p /etc/postgres \
22-
&& chmod a=rwx /etc/postgres
23-
RUN apk add --no-cache py3-netifaces
20+
RUN apk add --no-cache python3 py3-netifaces \
21+
&& if [ "${PG_MAJOR:-0}" -ge 12 ]; then \
22+
apk add --no-cache postgresql-pgvector; \
23+
fi \
24+
&& mkdir -p /etc/postgres \
25+
&& chmod a=rwx /etc/postgres
2426
COPY autoconf-entrypoint /
2527

2628
# Metadata

0 commit comments

Comments
 (0)