Files
docker-images/pgvector/Dockerfile
Walter Oggioni ead7b242fc
Some checks failed
CI / Build wildfly docker images (push) Failing after 28s
updated pgvector to 0.8.1
2025-11-08 13:58:28 +08:00

16 lines
390 B
Docker

ARG PG_VERSION=17
ARG PGVECTOR_VERSION
FROM postgres:${PG_VERSION}-alpine AS build
WORKDIR /
RUN apk update
RUN apk add gcc make musl-dev clang19 llvm19 git
RUN git clone --branch v${PGVECTOR_VERSION} https://github.com/pgvector/pgvector.git 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