summaryrefslogtreecommitdiffstats
path: root/OS/Fedora/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'OS/Fedora/Dockerfile')
-rw-r--r--OS/Fedora/Dockerfile14
1 files changed, 14 insertions, 0 deletions
diff --git a/OS/Fedora/Dockerfile b/OS/Fedora/Dockerfile
new file mode 100644
index 0000000..00dcbc6
--- /dev/null
+++ b/OS/Fedora/Dockerfile
@@ -0,0 +1,14 @@
+FROM fedora:latest
+MAINTAINER Chistophe LARUE <dev@startx.fr>
+
+# Install packages and set up sshd
+RUN yum -y update && yum clean all
+RUN yum -y install openssh-server && yum clean all
+RUN mkdir /var/run/sshd
+RUN ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key -N ''
+
+# Add ssh keys
+ADD .ssh/authorized_keys /root/.ssh/authorized_keys
+
+EXPOSE 22
+ENTRYPOINT ["/usr/sbin/sshd", "-D"] \ No newline at end of file