Files
docker-images/pgvector/Dockerfile
T
woggioni 3345937d72
CI / Build pgvector docker images (push) Successful in 3m8s
updated pgvector to 0.8.5
2026-07-12 16:39:58 +08:00

16 lines
460 B
Docker

ARG PG_VERSION=18.5 ALPINE_VERSION=3.24
FROM postgres:${PG_VERSION}-alpine${ALPINE_VERSION} AS build
ARG PGVECTOR_VERSION
WORKDIR /
RUN apk update
RUN apk add gcc make musl-dev clang21 llvm21 git
RUN git clone --branch v${PGVECTOR_VERSION} https://github.com/pgvector/pgvector.git pgvector
WORKDIR pgvector
RUN make
RUN make install
FROM postgres:${PG_VERSION}-alpine${ALPINE_VERSION} AS release
RUN rm -rf /usr/local
COPY --from=build /usr/local /usr/local