This commit is contained in:
Bernhard Radermacher
2026-02-27 10:48:28 +01:00
parent d0d230d2cd
commit 095849cf5c
4 changed files with 68 additions and 51 deletions

View File

@@ -1,4 +1,4 @@
FROM debian:trixie-slim
FROM pendragon.zone/docker/pg15
RUN apt-get update && \
apt-get install -y --no-install-recommends \
@@ -8,26 +8,6 @@ RUN apt-get update && \
&& \
rm -rf /var/lib/apt/lists/*
RUN apt-get update && \
apt-get install -y --no-install-recommends \
openssh-server \
sudo \
&& \
rm -rf /var/lib/apt/lists/* && \
echo "postgres ALL = (ALL) NOPASSWD:ALL" >> /etc/sudoers && \
echo "X11Forwarding no" >> /etc/ssh/sshd_config && \
echo "PasswordAuthentication no" >> /etc/ssh/sshd_config && \
echo "StrictHostKeyChecking no" >> /etc/ssh/ssh_config && \
mkdir -p /var/lib/postgresql/.ssh && \
chmod 700 /var/lib/postgresql/.ssh && \
chown postgres: /var/lib/postgresql/.ssh && \
chmod g-w,o-w /var/lib/postgresql
COPY --chmod=600 --chown=postgres:postgres authorized_keys id_ed25519 /var/lib/postgresql/.ssh/
COPY --chmod=600 --chown=postgres:postgres pool_hba.conf /etc/pgpool2/
# COPY --chmod=600 --chown=postgres:postgres pgpool.conf /etc/pgpool2/
COPY --chmod=755 entrypoint.sh /usr/local/bin/
ENTRYPOINT ["entrypoint.sh"]