forked from AsavarTzeth/docker-sftp
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
29 lines (22 loc) · 789 Bytes
/
Dockerfile
File metadata and controls
29 lines (22 loc) · 789 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
FROM debian:wheezy
MAINTAINER Dalibor Novak <boreplusplus@gmail.com>
ENV OPENSSH_VERSION 1:6.6p1-4~bpo70+1
RUN echo "deb http://http.debian.net/debian wheezy-backports main" >> /etc/apt/sources.list && \
apt-get update -qq && \
DEBIAN_FRONTEND=noninteractive \
apt-get install -qqy --no-install-recommends \
openssh-client=$OPENSSH_VERSION \
openssh-server=$OPENSSH_VERSION \
openssh-sftp-server=$OPENSSH_VERSION && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* && \
mkdir -p /var/run/sshd
COPY banner /etc/banner
COPY entrypoint.sh /entrypoint.sh
COPY sshd_config /etc/ssh/sshd_config
RUN chmod 744 /entrypoint.sh && \
chmod 644 /etc/ssh/sshd_config
ENV CONF_SSH /etc/ssh
EXPOSE 22
ENTRYPOINT ["/entrypoint.sh"]
CMD ["/usr/sbin/sshd", "-D", "-e"]