-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
51 lines (41 loc) · 1.08 KB
/
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
FROM centos:centos7.2.1511
### START Copied section, see https://hub.docker.com/_/centos/
MAINTAINER "Jarl Friis" <[email protected]>
### END Copied section
RUN yum install -y epel-release
RUN rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
RUN yum -y update
RUN yum install -y \
openssl \
proftpd \
proftpd-utils \
supervisor
run yum install -y \
automake \
fuse \
fuse-devel \
gcc-c++ \
libcurl-devel \
libxml2-devel \
make \
openssl-devel
# Find latest stable version on https://github.com/s3fs-fuse/s3fs-fuse/releases
ENV FUSE_VERSION=1.80
RUN cd /tmp && \
curl -fLO https://github.com/s3fs-fuse/s3fs-fuse/archive/v${FUSE_VERSION}.tar.gz && \
tar -zxvf v${FUSE_VERSION}.tar.gz && \
pushd s3fs-fuse-${FUSE_VERSION} && \
./autogen.sh && \
./configure && \
make && \
make install && \
popd && \
rm -rf s3fs-fuse-${FUSE_VERSION}
COPY supervisord.conf /etc/supervisord.conf
COPY ahbe_conf /etc/
ENV STORAGE_PATH=/mnt/storage
RUN mkdir -p ${STORAGE_PATH}
RUN /sbin/proftpd --configtest
COPY docker-entrypoint.sh /
ENTRYPOINT ["/docker-entrypoint.sh"]
CMD ["supervisord"]