mirror of
https://github.com/atmoz/sftp.git
synced 2024-11-17 12:51:33 -05:00
19 lines
406 B
Docker
19 lines
406 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 run script
|
|
ADD . /root
|
|
WORKDIR /root
|
|
RUN mv sshd_config /etc/ssh/sshd_config
|
|
|
|
EXPOSE 22
|
|
|
|
CMD ["/bin/bash", "run"]
|