# Runs backup-restore lifecycle tests with a specific PostgreSQL version.
# Used for PG version matrix testing (15, 16, 17, 18).
FROM debian:bookworm-slim

ARG PG_VERSION=17

RUN apt-get update && \
    apt-get install -y --no-install-recommends \
      ca-certificates curl gnupg2 postgresql-common && \
    /usr/share/postgresql-common/pgdg/apt.postgresql.org.sh -y && \
    apt-get install -y --no-install-recommends \
      postgresql-${PG_VERSION} && \
    rm -rf /var/lib/apt/lists/*

WORKDIR /tmp
ENTRYPOINT []
