summaryrefslogtreecommitdiffstats
path: root/Services/ssh/Dockerfile
diff options
context:
space:
mode:
authorstartxfr <clarue@startx.fr>2014-11-20 03:17:46 +0100
committerstartxfr <clarue@startx.fr>2014-11-20 03:17:46 +0100
commita699d0d06feeb1859efea16dd6b3df17901a1bc5 (patch)
tree3a2646acb64a4a9d2440549b2a895648b9289466 /Services/ssh/Dockerfile
parent8829f895c890685cc25fe3022299b4275808dc06 (diff)
downloadphpmyadmin-a699d0d06feeb1859efea16dd6b3df17901a1bc5.tar.gz
phpmyadmin-a699d0d06feeb1859efea16dd6b3df17901a1bc5.tar.bz2
phpmyadmin-a699d0d06feeb1859efea16dd6b3df17901a1bc5.tar.xz
phpmyadmin-a699d0d06feeb1859efea16dd6b3df17901a1bc5.zip
modif des services et ajout de memcache, apache et nodejs
Diffstat (limited to 'Services/ssh/Dockerfile')
-rw-r--r--Services/ssh/Dockerfile16
1 files changed, 16 insertions, 0 deletions
diff --git a/Services/ssh/Dockerfile b/Services/ssh/Dockerfile
new file mode 100644
index 0000000..ce02260
--- /dev/null
+++ b/Services/ssh/Dockerfile
@@ -0,0 +1,16 @@
+FROM startx/fedora
+MAINTAINER Chistophe LARUE <dev@startx.fr>
+
+# Install packages and set up sshd
+RUN yum -y update \
+ && yum -y install openssh-server \
+ && yum clean all
+RUN mkdir /var/run/sshd \
+ && ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key -N ''
+
+# Add ssh keys
+COPY .ssh/authorized_keys /root/.ssh/authorized_keys
+
+EXPOSE 22
+CMD ["/usr/sbin/sshd", "-D"]
+ONBUILD CMD ["/usr/sbin/sshd", "-D"]