Files
cnpg-postgres-containers/Dockerfile.barman
Jonathan Gonzalez V 1d1ae682b7 chore: add Barman versions in a container image
Adding the Barman by version and Debian distribution into an image to later
use as a provider to for the system images

Closes #290

Signed-off-by: Jonathan Gonzalez V <jonathan.gonzalez@enterprisedb.com>
2025-09-10 11:05:53 +02:00

10 lines
369 B
Docker

ARG BASE=debian:12.11-slim
FROM $BASE AS barman
RUN --mount=type=secret,id=requirements,target=/run/secrets/requirements.txt \
apt-get update && \
apt-get install -y postgresql-common build-essential && \
/usr/share/postgresql-common/pgdg/apt.postgresql.org.sh -y && \
apt-get install -y libpq-dev && \
pip install -r /run/secrets/requirements.txt