containers/jumphost/Dockerfile
Stefan Harmuth c019be6dc7
All checks were successful
Build OCI Containers / Build Containers (push) Successful in 7m43s
hosting the jump
2024-06-02 12:24:27 +02:00

20 lines
527 B
Docker

FROM debian:bookworm-slim
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 wget python3 python3-venv irssi neomutt ssh supervisor tmux && \
apt-get -y clean && \
touch /var/log/supervisord.log && \
mkdir /var/run/sshd && \
chmod a+x /start_sshd.sh
EXPOSE 22/tcp
VOLUME ["/etc/ssh", "/home", "/var/log"]
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisord.conf"]