| ADD rootfs.tar.xz / # buildkit |
| CMD ["bash"] |
| COPY create_users.sh /create_users.sh # buildkit |
| COPY start_sshd.sh /start_sshd.sh # buildkit |
| COPY supervisord.conf /etc/supervisord.conf # buildkit |
| RUN /bin/sh -c apt-get update && apt-get -y upgrade && apt-get -y --purge autoremove && apt-get -y install python3 python3-venv bsdgames bind9-dnsutils git inetutils-ping irssi less neomutt postfix ssh supervisor tmux vim w3m wget && apt-get -y clean && sed -i 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && locale-gen && touch /var/log/supervisord.log && mkdir /var/run/sshd && chmod a+x /*.sh # buildkit |
| EXPOSE map[22/tcp:{}] |
| VOLUME [/etc/ssh /home /var/log] |
| CMD ["/usr/bin/supervisord" "-c" "/etc/supervisord.conf"] |