2015-07-25 07:56:39 -04:00
|
|
|
FROM debian:jessie
|
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
|
|
|
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
|
|
|
|
2016-03-28 12:06:53 -04:00
|
|
|
# Step 1: sshd needs /var/run/sshd/ to run
|
|
|
|
# Step 2: Remove keys, they will be generated later by entrypoint
|
|
|
|
# (unique keys for each container)
|
|
|
|
RUN mkdir -p /var/run/sshd && \
|
|
|
|
rm /etc/ssh/ssh_host_*key*
|
2014-10-07 15:34:24 -04:00
|
|
|
|
2014-12-31 10:35:46 -05:00
|
|
|
COPY sshd_config /etc/ssh/sshd_config
|
|
|
|
COPY entrypoint /
|
2015-07-25 07:55:33 -04:00
|
|
|
COPY README.md /
|
2014-10-07 15:34:24 -04:00
|
|
|
|
2016-03-17 15:53:08 -04:00
|
|
|
VOLUME /etc/ssh
|
|
|
|
|
2014-10-07 15:34:24 -04:00
|
|
|
EXPOSE 22
|
|
|
|
|
2014-12-31 10:35:46 -05:00
|
|
|
ENTRYPOINT ["/entrypoint"]
|