Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: xieydd <xieydd@gmail.com>
  • Loading branch information
xieydd committed Nov 22, 2024
1 parent aa5f8ab commit a692821
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docker/pg-cnpg/Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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.
Expand Down

0 comments on commit a692821

Please sign in to comment.