podman-ansible-host/arch-ssh.Containerfile

6 lines
432 B
Plaintext
Raw Normal View History

2022-04-25 21:56:40 +00:00
FROM docker.io/archlinux:base
RUN pacman -Syu --noconfirm systemd kitty-terminfo openssh python3 && rm -rf /var/cache/pacman/ && systemctl enable sshd.service && mkdir -m 0700 ~/.ssh && touch ~/.ssh/authorized_keys && chmod 0600 ~/.ssh/authorized_keys && echo "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJKjThT/FYgychPF0LHvkaO/H1qPEQ9RXLzs6bmBtONu ben2019" >> ~/.ssh/authorized_keys
COPY ssh-config/* /etc/ssh/
ENTRYPOINT ["/sbin/init"]