0
0
Fork 0
mirror of https://github.com/atmoz/sftp.git synced 2024-11-24 12:59:24 -05:00
atmoz-sftp/Dockerfile

19 lines
410 B
Text
Raw Normal View History

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-12-31 10:35:46 -05:00
# Install OpenSSH
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
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-12-31 10:35:46 -05:00
# Copy configuration and entrypoint script
COPY sshd_config /etc/ssh/sshd_config
COPY entrypoint /
2014-10-07 15:34:24 -04:00
EXPOSE 22
2014-12-31 10:35:46 -05:00
ENTRYPOINT ["/entrypoint"]