summaryrefslogtreecommitdiffstats
path: root/Services/ssh/Dockerfile
diff options
context:
space:
mode:
authorstartxfr <clarue@startx.fr>2014-12-05 21:42:47 +0100
committerstartxfr <clarue@startx.fr>2014-12-05 21:42:47 +0100
commit0c46aa05e68dda40eb7f5b6f25b32a0fe32841a9 (patch)
tree250d1bd97a8efa94edd538d22e1fbfd4de78cf3b /Services/ssh/Dockerfile
parentae9ea8fd52ae35751af246122935455124891db7 (diff)
downloadphpmyadmin-0c46aa05e68dda40eb7f5b6f25b32a0fe32841a9.tar.gz
phpmyadmin-0c46aa05e68dda40eb7f5b6f25b32a0fe32841a9.tar.bz2
phpmyadmin-0c46aa05e68dda40eb7f5b6f25b32a0fe32841a9.tar.xz
phpmyadmin-0c46aa05e68dda40eb7f5b6f25b32a0fe32841a9.zip
modification de la gestion du serveur ssh
Diffstat (limited to 'Services/ssh/Dockerfile')
-rw-r--r--Services/ssh/Dockerfile12
1 files changed, 6 insertions, 6 deletions
diff --git a/Services/ssh/Dockerfile b/Services/ssh/Dockerfile
index 904a064..2ad849c 100644
--- a/Services/ssh/Dockerfile
+++ b/Services/ssh/Dockerfile
@@ -4,13 +4,13 @@ MAINTAINER Christophe 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 ''
-
+ && yum clean all
+# Copy startx toolkit
+COPY sx/* /sx/
# Copy ssh keys
COPY .ssh/authorized_keys /root/.ssh/authorized_keys
+RUN chmod ug+rx /sx/sshd*
+
EXPOSE 22
-CMD ["/usr/sbin/sshd", "-D"]
-ONBUILD CMD ["/usr/sbin/sshd", "-D"]
+CMD ["/sx/sshd_run.sh"] \ No newline at end of file