You've already forked pgvecto.rs
mirror of
https://github.com/tensorchord/pgvecto.rs.git
synced 2025-07-29 08:21:12 +03:00
12 lines
451 B
Docker
12 lines
451 B
Docker
ARG FROM_TAG
|
|
ARG POSTGRES_VERSION
|
|
FROM scratch as nothing
|
|
ARG TARGETARCH
|
|
FROM tensorchord/pgvecto-rs-binary:${FROM_TAG}-${TARGETARCH} as binary
|
|
|
|
FROM postgres:$POSTGRES_VERSION
|
|
COPY --from=binary /pgvecto-rs-binary-release.deb /tmp/vectors.deb
|
|
RUN apt-get install -y /tmp/vectors.deb && rm -f /tmp/vectors.deb
|
|
|
|
CMD ["postgres", "-c" ,"shared_preload_libraries=vectors.so", "-c", "search_path=\"$user\", public, vectors", "-c", "logging_collector=on"]
|