From c5421316437f8fee4a31bf1652ad486824ac70d7 Mon Sep 17 00:00:00 2001 From: broizter Date: Mon, 4 Mar 2024 14:18:19 +0100 Subject: [PATCH] added dockerfile --- Dockerfile | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..9c85be9 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,15 @@ +FROM debian:bookworm + +RUN apt-get update && apt-get install --no-install-recommends -y openssh-server curl ca-certificates fish && \ +usermod -s /usr/bin/fish root && \ +rm /etc/motd && \ +rm /etc/update-motd.d/10-uname && \ +mkdir /var/run/sshd && \ +sed -i 's/#PasswordAuthentication yes/PasswordAuthentication no/g' /etc/ssh/sshd_config && \ +sed -i 's/X11Forwarding yes/X11Forwarding no/g' /etc/ssh/sshd_config + +COPY --from=docker:dind /usr/local/bin/docker /usr/local/bin/ + +EXPOSE 22 + +CMD ["/usr/sbin/sshd", "-D"]