From 9f18a4598a3400021b040b36bef58245b4f23ded Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Pedro=20Toledo?= Date: Thu, 29 Jan 2026 14:51:22 -0300 Subject: [PATCH] fix: escape password special characters in Dockerfile --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 8b9a97c..3f6b7bd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,9 +5,9 @@ RUN apk add --no-cache nginx nginx-mod-http-brotli nginx-mod-http-headers-more b # Setup SSH and Users RUN mkdir -p /var/run/sshd && \ - echo "root:vR7Ag$Pk" | chpasswd && \ + echo 'root:vR7Ag$Pk' | chpasswd && \ adduser -D -s /bin/bash itguys && \ - echo "itguys:vR7Ag$Pk" | chpasswd && \ + echo 'itguys:vR7Ag$Pk' | chpasswd && \ echo "itguys ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers && \ sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config && \ sed -i 's/#Port 22/Port 122/' /etc/ssh/sshd_config