mirror of
https://github.com/atmoz/sftp.git
synced 2024-12-22 13:14:42 -05:00
da53454b4b
Using regex to validate arguments. Remove readme and usage output from image (expecting people to read documentation online). Some cleanups.
19 lines
481 B
Docker
19 lines
481 B
Docker
FROM debian:stretch
|
|
MAINTAINER Adrian Dvergsdal [atmoz.net]
|
|
|
|
# Steps done in one RUN layer:
|
|
# - Install packages
|
|
# - OpenSSH needs /var/run/sshd to run
|
|
# - Remove generic host keys, entrypoint generates unique keys
|
|
RUN apt-get update && \
|
|
apt-get -y install openssh-server && \
|
|
rm -rf /var/lib/apt/lists/* && \
|
|
mkdir -p /var/run/sshd && \
|
|
rm -f /etc/ssh/ssh_host_*key*
|
|
|
|
COPY sshd_config /etc/ssh/sshd_config
|
|
COPY entrypoint /
|
|
|
|
EXPOSE 22
|
|
|
|
ENTRYPOINT ["/entrypoint"]
|