Skip to content

Commit

Permalink
Get rid of the cycle in this build system (#809)
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonmp85 authored Nov 14, 2024
1 parent 6834129 commit 20507b4
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion images/trunk-test-tembo/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
ARG PG_VERSION=15
ARG TAG=latest

FROM quay.io/tembo/tembo-pg-cnpg:pg${PG_VERSION}-e112cf3
FROM rust:1.78-bookworm as builder

ARG TRUNK_VER=0.14.0

ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL sparse
RUN cargo install --version $TRUNK_VER pg-trunk

FROM quay.io/tembo/tembo-pg-cnpg:pg${PG_VERSION}-e112cf3

# Install trunk
COPY --from=builder /usr/local/cargo/bin/trunk /usr/bin/trunk

USER root
RUN apt-get update && apt-get install -y \
Expand Down

0 comments on commit 20507b4

Please sign in to comment.