From cffa172194dda78f899955e3fddc2d0ecc962245 Mon Sep 17 00:00:00 2001 From: Bernhard Radermacher Date: Wed, 25 Feb 2026 15:49:49 +0100 Subject: [PATCH] fix --- Dockerfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 8b0a515..512b4f8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,9 +18,10 @@ RUN apt-get update && \ sudo \ && \ rm -rf /var/lib/apt/lists/* && \ - printf "\npostgres ALL = (ALL) NOPASSWD:ALL\n" >> /etc/sudoers && \ - printf "\nX11Forwarding no\nPasswordAuthentication no\n" >> /etc/ssh/sshd_config && \ - printf "\nStrictHostKeyChecking no\n" >> /etc/ssh/ssh_config + 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 COPY --chown=postgres:postgres postgres /var/lib/postgresql/