summaryrefslogtreecommitdiffstats
path: root/Services/ssh/Dockerfile
blob: 2ad849ce08c8fd061465f65125a6474a20fbb445 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
FROM startx/fedora
MAINTAINER Christophe LARUE <dev@startx.fr>

# Install packages and set up sshd
RUN yum -y update \
    && yum -y install openssh-server \
    && 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 ["/sx/sshd_run.sh"]