mirror of
https://github.com/atmoz/sftp.git
synced 2024-12-22 13:14:42 -05:00
18 lines
410 B
Docker
18 lines
410 B
Docker
FROM debian:wheezy
|
|
MAINTAINER Adrian Dvergsdal [atmoz.net]
|
|
|
|
# Install OpenSSH
|
|
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
|
|
|
|
# Copy configuration and entrypoint script
|
|
COPY sshd_config /etc/ssh/sshd_config
|
|
COPY entrypoint /
|
|
|
|
EXPOSE 22
|
|
|
|
ENTRYPOINT ["/entrypoint"]
|