summaryrefslogtreecommitdiffstats
path: root/OS/Fedora/Dockerfile
blob: 00dcbc6b954da047d7468124c3d72831ce063924 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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"]