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