1
0
forked from finn/tinyboard
Files
tinyboard/spoke/Dockerfile
2026-04-14 19:07:09 -07:00

14 lines
470 B
Docker

FROM debian:bookworm-slim
RUN apt-get update && apt-get install -y autossh openssh-client && rm -rf /var/lib/apt/lists/*
RUN echo "PermitRootLogin no" >> /etc/ssh/sshd_config
RUN echo "PasswordAuthentication no" >> /etc/ssh/sshd_config
RUN echo "Subsystem sftp internal-sftp" >> /etc/ssh/sshd_config
ARG UID=1000
ARG GID=1000
RUN groupadd -g ${GID} armbian && useradd -m -u ${UID} -g armbian armbian
USER armbian
WORKDIR /home/armbian
CMD ["autossh", "-M", "0", "-N"]