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