-
Notifications
You must be signed in to change notification settings - Fork 6
/
Dockerfile
29 lines (29 loc) · 1.16 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
FROM debian:stretch-slim
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update \
&& apt-get -y dist-upgrade \
&& apt-get -y install build-essential busybox-syslogd catdoc cron curl default-libmysqlclient-dev libssl-dev libtre-dev libwrap0-dev libzip-dev mysql-client nginx php-curl php-fpm php-gd php-ldap php-memcache php-mysql php-pdo poppler-utils python-mysqldb sphinxsearch supervisor sysstat tnef unrtf
RUN groupadd piler \
&& useradd -g piler -m -s /bin/sh -d /var/piler piler \
&& usermod -L piler \
&& chmod 755 /var/piler \
&& mkdir xlhtml \
&& curl -L https://bitbucket.org/jsuto/piler/downloads/xlhtml-0.5.1-sj-mod.tar.gz | tar xvz --strip=1 -C xlhtml \
&& cd xlhtml \
&& ./configure \
&& make \
&& make install \
&& cd .. \
&& mkdir piler \
&& curl -L https://bitbucket.org/jsuto/piler/downloads/piler-1.3.9.tar.gz | tar xvz --strip=1 -C piler \
&& cd piler \
&& ./configure --localstatedir=/var --with-database=mysql --enable-tcpwrappers \
&& make \
&& make install \
&& ldconfig \
&& service php7.0-fpm start
COPY rootfs /
RUN crontab /tmp/piler.cron
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/supervisord.conf"]
EXPOSE 25/tcp
EXPOSE 80/tcp