From a07d5abc600a3983b0dc9d278bf57f11b7b0dbe1 Mon Sep 17 00:00:00 2001 From: Christoph Helma Date: Thu, 29 Aug 2019 14:28:01 +0200 Subject: initial commit --- Dockerfile | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..f775bc5 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,12 @@ +FROM alpine +RUN apk add --update git openssh \ +&& rm -rf /tmp/* /var/cache/apk/* +RUN ssh-keygen -A +# creates locked password +RUN adduser -D -u 500 ist +# unlock and disable password +RUN passwd -ud ist +RUN echo "PasswordAuthentication no" >> /etc/ssh/sshd_config +EXPOSE 22 +# mount server .ssh/authorized keys as volume in start command +CMD ["/usr/sbin/sshd","-D"] -- cgit v1.2.3