From 9759591dddedfc580fa5be361490e71761675dd7 Mon Sep 17 00:00:00 2001 From: Deon George Date: Wed, 26 Jul 2023 21:34:07 +1000 Subject: [PATCH] Unlock lamp account and disable password login --- Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index ce8147d..0f2c85c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,9 +10,10 @@ ENV SSH_KEY_PATH=/etc/ssh/keys # Base RUN apk add --no-cache bash git unzip openssh -RUN sed -i -e "s:#HostKey\ /etc/ssh:HostKey ${SSH_KEY_PATH}:" /etc/ssh/sshd_config +RUN sed -i -e "s:#HostKey\ /etc/ssh:HostKey ${SSH_KEY_PATH}:" -e "s:#PasswordAuthentication yes:PasswordAuthentication no:" /etc/ssh/sshd_config -RUN adduser -g "Hosting Admin User" -u 1000 -G www-data -h /home/lamp -HD lamp +RUN adduser -g "Hosting Admin User" -u 1000 -G www-data -h /home/lamp -HD lamp\ + && echo "lamp:*" | chpasswd -e # DB Clients RUN apk add --no-cache mariadb-client postgresql-client