permissions fix

This commit is contained in:
Dragan Filipovic 2022-12-31 10:20:28 +01:00
parent c685549dfc
commit 148d625f1d

View File

@ -14,7 +14,7 @@ RUN echo "PubkeyAuthentication yes" >> /etc/ssh/sshd_config.d/pub.conf
RUN echo "AuthorizedKeysFile .ssh/authorized_keys" >> /etc/ssh/sshd_config.d/pub.conf RUN echo "AuthorizedKeysFile .ssh/authorized_keys" >> /etc/ssh/sshd_config.d/pub.conf
RUN mkdir -p /var/www/html RUN mkdir -p /var/www/html
RUN chown -R /var/www/html RUN chown -R test /var/www/html
RUN mkdir -p /home/test/.ssh RUN mkdir -p /home/test/.ssh
RUN echo "$SSH_PUB_KEY" > /home/test/.ssh/authorized_keys RUN echo "$SSH_PUB_KEY" > /home/test/.ssh/authorized_keys
RUN chmod 700 /home/test/.ssh RUN chmod 700 /home/test/.ssh