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/