podman-ansible-host/debian-ssh.Containerfile

7 lines
456 B
Plaintext

FROM docker.io/debian:stable
RUN mkdir /etc/ssh
COPY ssh-config/* /etc/ssh/
RUN apt-get update && apt-get upgrade -y && apt-get install -y systemd kitty-terminfo openssh-server python3 && rm -rf /var/cache/apt/ && mkdir -m 0700 ~/.ssh && touch ~/.ssh/authorized_keys && chmod 0600 ~/.ssh/authorized_keys && echo "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJKjThT/FYgychPF0LHvkaO/H1qPEQ9RXLzs6bmBtONu ben2019" >> ~/.ssh/authorized_keys
ENTRYPOINT ["/sbin/init"]