From 956f0cdf8fbb518f05bbb9685c1a4478a4c5780a Mon Sep 17 00:00:00 2001 From: Adrian Dvergsdal Date: Thu, 16 Oct 2014 22:08:13 +0200 Subject: [PATCH] Cleanup after install --- Dockerfile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 0e902a6..d0245ad 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,15 @@ 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 +# Add configuration and run script ADD . /root WORKDIR /root RUN mv sshd_config /etc/ssh/sshd_config