0
0
Fork 0
mirror of https://github.com/atmoz/sftp.git synced 2024-12-22 13:14:42 -05:00
atmoz-sftp/Dockerfile
2016-03-28 18:06:53 +02:00

22 lines
536 B
Docker

FROM debian:jessie
MAINTAINER Adrian Dvergsdal [atmoz.net]
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get -y install openssh-server && \
rm -rf /var/lib/apt/lists/*
# 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*
COPY sshd_config /etc/ssh/sshd_config
COPY entrypoint /
COPY README.md /
VOLUME /etc/ssh
EXPOSE 22
ENTRYPOINT ["/entrypoint"]