Files
postgresrepmgr/Dockerfile
Bernhard Radermacher b3c27bdd86 refactor to minimize
2026-02-20 17:51:31 +01:00

16 lines
443 B
Docker

FROM postgres:15
RUN apt-get update && \
apt-get install -y --no-install-recommends \
postgresql-$PG_MAJOR-repmgr \
&& \
rm -rf /var/lib/apt/lists/*
RUN install --verbose --directory --owner postgres --group postgres --mode 1777 /etc/repmgr
VOLUME /etc/repmgr
COPY --chmod=644 --chown=postgres profile /var/lib/postgresql/.profile
COPY --chmod=755 entrypoint.sh /usr/local/bin/
ENTRYPOINT ["entrypoint.sh"]