diff --git a/docker/pg-cnpg/Dockerfile b/docker/pg-cnpg/Dockerfile index df0b38c..81129c4 100644 --- a/docker/pg-cnpg/Dockerfile +++ b/docker/pg-cnpg/Dockerfile @@ -1,6 +1,9 @@ ARG PG_MAJOR +ARG SEMVER ARG TARGETARCH +FROM tensorchord/vchord-binary:pg${PG_MAJOR}-v${SEMVER} as binary + FROM rust:1.78-bookworm as builder ARG TRUNK_VER=0.12.25 ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL sparse @@ -16,7 +19,7 @@ ARG ALTDIR=/var/lib/postgresql/data/tensorchord USER root -COPY ../build/vchord-pg${PG_VERSION}_${SEMVER}_${TARGETARCH}.deb /tmp/vchord.deb +COPY --from binary /workspace/vchord-pg${PG_VERSION}_${SEMVER}_${TARGETARCH}.deb /tmp/vchord.deb RUN apt-get install -y /tmp/vchord.deb && rm -f /tmp/vchord.deb # PGDATA is set in pg-slim and used by dependents on this image.