forked from atmoz/sftp
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathDockerfile
35 lines (28 loc) · 938 Bytes
/
Dockerfile
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
30
31
32
33
34
35
FROM debian:jessie
MAINTAINER Jonathan Baker [[email protected]]
# - Install packages
# - OpenSSH needs /var/run/sshd to run
# - Remove generic host keys, entrypoint generates unique keys
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y \
openssh-server \
automake \
curl \
build-essential \
libfuse-dev libcurl4-openssl-dev \
libtool \
libxml2-dev mime-support \
pkg-config libssl-dev \
tar && \
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 /
COPY README.md /
# - add s3fs_fuse filesystem:
ENV VERSION 1.80
RUN curl -L https://github.com/s3fs-fuse/s3fs-fuse/archive/v${VERSION}.tar.gz | tar zxv -C /usr/src
RUN cd /usr/src/s3fs-fuse-${VERSION} && ./autogen.sh && ./configure --prefix=/usr && make && make install
EXPOSE 22
ENTRYPOINT ["/entrypoint"]