You've already forked pgvecto.rs
mirror of
https://github.com/tensorchord/pgvecto.rs.git
synced 2025-09-13 21:21:48 +03:00
16 lines
522 B
Docker
16 lines
522 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
|
|
|
|
# Change the uid of postgres to 26
|
|
RUN usermod -u 26 postgres
|
|
USER 26
|
|
|
|
CMD ["postgres", "-c" ,"shared_preload_libraries=vectors.so", "-c", "search_path=\"$user\", public, vectors", "-c", "logging_collector=on"]
|