0
0
Fork 0
mirror of https://github.com/atmoz/sftp.git synced 2024-11-24 12:59:24 -05:00
atmoz-sftp/Dockerfile
2014-10-21 03:21:53 +02:00

20 lines
420 B
Docker

FROM debian:wheezy
MAINTAINER Adrian Dvergsdal [atmoz.net]
# Install SSH
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get -y install openssh-server && \
rm -rf /var/lib/apt/lists/*
# sshd needs this directory to run
RUN mkdir -p /var/run/sshd
# Add configuration and script
ADD . /root
WORKDIR /root
RUN mv sshd_config /etc/ssh/sshd_config && \
chmod +x run
EXPOSE 22
ENTRYPOINT ["./run"]