summaryrefslogtreecommitdiffstats
path: root/Services/ssh/Dockerfile
diff options
context:
space:
mode:
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