| # debian.sh --arch 'amd64' out/ 'trixie' '@1777939200' |
| ENV DEBIAN_FRONTEND=noninteractive ROOT_PASSWORD=root |
| RUN /bin/sh -c apt-get update -qq && apt-get install -y -qq openssh-server sudo curl wget vim nano net-tools iputils-ping python3 && rm -rf /var/lib/apt/lists/* && mkdir -p /run/sshd && echo 'PermitRootLogin yes' >> /etc/ssh/sshd_config && echo '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"] |