2014-10-07 15:34:24 -04:00
|
|
|
FROM debian:wheezy
|
2014-10-16 16:08:13 -04:00
|
|
|
MAINTAINER Adrian Dvergsdal [atmoz.net]
|
2014-10-07 15:34:24 -04:00
|
|
|
|
2014-10-16 16:08:13 -04:00
|
|
|
# Install SSH
|
|
|
|
RUN apt-get update && \
|
|
|
|
DEBIAN_FRONTEND=noninteractive apt-get -y install openssh-server && \
|
|
|
|
rm -rf /var/lib/apt/lists/*
|
2014-10-07 15:34:24 -04:00
|
|
|
|
2014-10-16 16:08:13 -04:00
|
|
|
# sshd needs this directory to run
|
2014-10-07 15:34:24 -04:00
|
|
|
RUN mkdir -p /var/run/sshd
|
|
|
|
|
2014-10-20 13:43:07 -04:00
|
|
|
# Add configuration and script
|
2014-10-07 15:34:24 -04:00
|
|
|
ADD . /root
|
|
|
|
WORKDIR /root
|
2014-10-20 13:43:07 -04:00
|
|
|
RUN mv sshd_config /etc/ssh/sshd_config && \
|
|
|
|
chmod +x run
|
2014-10-07 15:34:24 -04:00
|
|
|
|
|
|
|
EXPOSE 22
|
|
|
|
|
2014-10-20 21:21:53 -04:00
|
|
|
ENTRYPOINT ["./run"]
|