forked from repo-mirrors/cnpg-postgres-containers
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>
10 lines
369 B
Docker
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
|