Initial BitNet s9pk package with SSH access

This commit is contained in:
GERTY
2026-05-12 22:31:18 +00:00
commit 6e8a8f5b59
10 changed files with 429 additions and 0 deletions

26
Dockerfile Normal file
View File

@@ -0,0 +1,26 @@
# 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"]