# BitNet s9pk - Extended with SSH access FROM ghcr.io/kth8/bitnet:latest # Install OpenSSH server and dependencies RUN apt-get update && \ apt-get install -y openssh-server && \ apt-get clean && \ rm -rf /var/lib/apt/lists/* # Create SSH directory and configure RUN mkdir -p /var/run/sshd /root/.ssh && \ chmod 700 /root/.ssh # Configure SSH RUN sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin prohibit-password/' /etc/ssh/sshd_config && \ sed -i 's/#PubkeyAuthentication yes/PubkeyAuthentication yes/' /etc/ssh/sshd_config && \ sed -i 's/#PasswordAuthentication yes/PasswordAuthentication no/' /etc/ssh/sshd_config # Create entrypoint script COPY docker_entrypoint.sh /usr/local/bin/ RUN chmod +x /usr/local/bin/docker_entrypoint.sh EXPOSE 22 ENTRYPOINT ["/usr/local/bin/docker_entrypoint.sh"] CMD ["/usr/sbin/sshd", "-D"]