initial commit master
authorChristoph Helma <helma@in-silico.ch>
Thu, 29 Aug 2019 12:28:01 +0000 (14:28 +0200)
committerChristoph Helma <helma@in-silico.ch>
Thu, 29 Aug 2019 12:28:01 +0000 (14:28 +0200)
Dockerfile [new file with mode: 0644]

diff --git a/Dockerfile b/Dockerfile
new file mode 100644 (file)
index 0000000..f775bc5
--- /dev/null
@@ -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"]