This commit is contained in:
Bernhard Radermacher
2026-02-25 15:49:49 +01:00
parent 95caa2654c
commit cffa172194

View File

@@ -18,9 +18,10 @@ RUN apt-get update && \
sudo \ sudo \
&& \ && \
rm -rf /var/lib/apt/lists/* && \ rm -rf /var/lib/apt/lists/* && \
printf "\npostgres ALL = (ALL) NOPASSWD:ALL\n" >> /etc/sudoers && \ echo "postgres ALL = (ALL) NOPASSWD:ALL" >> /etc/sudoers && \
printf "\nX11Forwarding no\nPasswordAuthentication no\n" >> /etc/ssh/sshd_config && \ echo "X11Forwarding no" >> /etc/ssh/sshd_config && \
printf "\nStrictHostKeyChecking no\n" >> /etc/ssh/ssh_config echo "PasswordAuthentication no" >> /etc/ssh/sshd_config && \
echo "StrictHostKeyChecking no" >> /etc/ssh/ssh_config
COPY --chown=postgres:postgres postgres /var/lib/postgresql/ COPY --chown=postgres:postgres postgres /var/lib/postgresql/