Skip to content

Commit

Permalink
add dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
ChuckHend committed Aug 12, 2023
1 parent 49711df commit 70b7a8c
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions images/pgmq-pg/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
FROM rust:1.70-bookworm as builder

ARG TRUNK_VER=0.8.7

RUN cargo install --version $TRUNK_VER pg-trunk

FROM postgres:bookworm

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

ARG PGMQ_VER=0.11.2
RUN apt-get update \
&& apt-get install -y ca-certificates

RUN trunk install pg_partman --version 4.7.3
RUN trunk install pgmq --version $PGMQ_VER

COPY ./postgresql.conf /usr/share/postgresql/15/postgresql.conf.sample

USER postgres
CMD ["postgres"]

0 comments on commit 70b7a8c

Please sign in to comment.