Files
docker-images/pgvector/Dockerfile
Walter Oggioni 2f53a58607
All checks were successful
CI / Build pgvector docker images (push) Successful in 15s
updated pgvector
2026-01-01 08:00:33 +08:00

16 lines
429 B
Docker

ARG PG_VERSION=18.1 ALPINE_VERSION=3.23
FROM postgres:${PG_VERSION}-alpine${ALPINE_VERSION} AS build
ARG PGVECTOR_VERSION
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