added pgvector docker image
Some checks failed
CI / Build wildfly docker images (push) Failing after 43s

This commit is contained in:
2025-03-05 20:35:44 +08:00
parent a65a014d89
commit 92c45d5981
2 changed files with 51 additions and 0 deletions

14
pgvector/Dockerfile Normal file
View File

@@ -0,0 +1,14 @@
ARG PG_VERSION=17
FROM postgres:${PG_VERSION}-alpine AS build
WORKDIR /
RUN apk update
RUN apk add gcc make musl-dev clang19 llvm19
ADD https://github.com/pgvector/pgvector.git#v0.8.0 pgvector
WORKDIR pgvector
RUN make
RUN make install
FROM postgres:alpine AS release
RUN rm -rf /usr/local
COPY --from=build /usr/local /usr/local