From a699d0d06feeb1859efea16dd6b3df17901a1bc5 Mon Sep 17 00:00:00 2001 From: startxfr Date: Thu, 20 Nov 2014 03:17:46 +0100 Subject: modif des services et ajout de memcache, apache et nodejs --- Services/ssh/Dockerfile | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 Services/ssh/Dockerfile (limited to 'Services/ssh/Dockerfile') 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 + +# 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"] -- cgit v1.2.3