| ADD almalinux-9-default-amd64.tar.xz / # buildkit |
| CMD ["/bin/bash"] |
| ENV ROOT_PASSWORD=root |
| RUN /bin/sh -c dnf install -y -q --allowerasing openssh-server sudo curl wget vim nano iputils python3 && dnf clean all && ssh-keygen -A && sed -i 's/#PermitRootLogin.*/PermitRootLogin yes/' /etc/ssh/sshd_config && sed -i 's/#PasswordAuthentication.*/PasswordAuthentication yes/' /etc/ssh/sshd_config && echo 'root:root' | chpasswd # buildkit |
| EXPOSE [22/tcp] |
| COPY entrypoint.sh /usr/local/bin/entrypoint.sh # buildkit |
| RUN /bin/sh -c chmod +x /usr/local/bin/entrypoint.sh # buildkit |
| ENTRYPOINT ["/usr/local/bin/entrypoint.sh"] |
| CMD ["/usr/sbin/sshd" "-D" "-e"] |