From a6928218a16578d1fc655159dc22a79edcb1b9f6 Mon Sep 17 00:00:00 2001 From: xieydd Date: Fri, 22 Nov 2024 21:38:24 +0800 Subject: [PATCH] fix Signed-off-by: xieydd --- docker/pg-cnpg/Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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.