containers/jumphost/Dockerfile
Stefan Harmuth a0ad69f3f1
All checks were successful
Build OCI Containers / Build Containers (push) Successful in 1m51s
hosting the jump creating users; finetuning
2024-06-02 15:06:44 +02:00

23 lines
674 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 wget python3 python3-venv bind9-dnsutils irssi neomutt ssh supervisor tmux vim w3m && \
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"]