All checks were successful
Build OCI Containers / Build Containers (push) Successful in 3m6s
23 lines
711 B
Docker
23 lines
711 B
Docker
FROM debian:bookworm-slim
|
|
|
|
COPY create_users.sh /create_users.sh
|
|
COPY start_sshd.sh /start_sshd.sh
|
|
COPY supervisord.conf /etc/supervisord.conf
|
|
|
|
RUN apt-get update && \
|
|
apt-get -y upgrade && \
|
|
apt-get -y --purge autoremove && \
|
|
apt-get -y install python3 python3-venv bsdgames bind9-dnsutils 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
|
|
|
|
EXPOSE 22/tcp
|
|
|
|
VOLUME ["/etc/ssh", "/home", "/var/log"]
|
|
|
|
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisord.conf"]
|