sftp-share/Dockerfile

19 lines
393 B
Text
Raw Normal View History

2014-11-16 15:42:55 +00:00
FROM ubuntu:14.04
MAINTAINER Knut Ahlers <knut@ahlers.me>
ENV USER share
ENV PASS changeme
ENV USER_UID 1000
2014-11-16 15:42:55 +00:00
RUN apt-get update && \
2014-11-16 15:51:01 +00:00
apt-get install -y openssh-server mcrypt && \
mkdir /var/run/sshd && chmod 0755 /var/run/sshd
2014-11-16 15:42:55 +00:00
ADD start.sh /usr/local/bin/start.sh
ADD sshd_config /etc/ssh/sshd_config
VOLUME ["/data"]
EXPOSE 22
ENTRYPOINT ["/bin/bash", "/usr/local/bin/start.sh"]