Files
docker-images/pgvector/Dockerfile
T
woggioni 175bd88854
CI / Build pgvector docker images (push) Failing after 21s
updated pgvector to 0.8.5
2026-07-12 16:38:48 +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 clang22 llvm22 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