0
0
Fork 0
mirror of https://github.com/atmoz/sftp.git synced 2025-01-19 13:46:11 -05:00
atmoz-sftp/Dockerfile

21 lines
420 B
Text
Raw Normal View History

2014-10-07 21:34:24 +02:00
FROM debian:wheezy
2014-10-16 22:08:13 +02:00
MAINTAINER Adrian Dvergsdal [atmoz.net]
2014-10-07 21:34:24 +02:00
2014-10-16 22:08:13 +02: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 21:34:24 +02:00
2014-10-16 22:08:13 +02:00
# sshd needs this directory to run
2014-10-07 21:34:24 +02:00
RUN mkdir -p /var/run/sshd
# Add configuration and script
2014-10-07 21:34:24 +02:00
ADD . /root
WORKDIR /root
RUN mv sshd_config /etc/ssh/sshd_config && \
chmod +x run
2014-10-07 21:34:24 +02:00
EXPOSE 22
2014-10-21 03:21:53 +02:00
ENTRYPOINT ["./run"]