mirror of
https://github.com/YuzuZensai/cloudnative-vectorchord-pgvecto.rs.git
synced 2026-01-06 04:33:02 +00:00
The arg substitution syntax we use has now made it into the default dockerfile syntax Signed-off-by: bo0tzz <git@bo0tzz.me>
16 lines
361 B
Docker
16 lines
361 B
Docker
ARG CNPG_TAG
|
|
|
|
FROM ghcr.io/cloudnative-pg/postgresql:$CNPG_TAG
|
|
|
|
ARG CNPG_TAG
|
|
ARG PGVECTORS_TAG
|
|
ARG TARGETARCH
|
|
|
|
# drop to root to install packages
|
|
USER root
|
|
ADD https://github.com/tensorchord/pgvecto.rs/releases/download/$PGVECTORS_TAG/vectors-pg${CNPG_TAG%.*}_${PGVECTORS_TAG#"v"}_$TARGETARCH.deb ./pgvectors.deb
|
|
RUN apt install ./pgvectors.deb
|
|
|
|
USER postgres
|
|
|