0
0
Fork 0
mirror of https://github.com/atmoz/sftp.git synced 2024-11-17 12:51:33 -05:00

Cleanup after install

This commit is contained in:
Adrian Dvergsdal 2014-10-16 22:08:13 +02:00
parent 2505784452
commit 956f0cdf8f

View file

@ -1,10 +1,15 @@
FROM debian:wheezy FROM debian:wheezy
MAINTAINER Adrian Dvergsdal MAINTAINER Adrian Dvergsdal [atmoz.net]
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -y install openssh-server # Install SSH
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get -y install openssh-server && \
rm -rf /var/lib/apt/lists/*
# sshd needs this directory to run
RUN mkdir -p /var/run/sshd RUN mkdir -p /var/run/sshd
# Add configuration and run script
ADD . /root ADD . /root
WORKDIR /root WORKDIR /root
RUN mv sshd_config /etc/ssh/sshd_config RUN mv sshd_config /etc/ssh/sshd_config