2017-12-24 13:08:07 +00:00
|
|
|
FROM nextcloud:apache
|
|
|
|
|
|
|
|
RUN echo "deb http://ftp.debian.org/debian jessie-backports main" >> /etc/apt/sources.list \
|
|
|
|
&& apt-get update && apt-get install -y \
|
|
|
|
supervisor \
|
|
|
|
cron \
|
|
|
|
ffmpeg \
|
|
|
|
libmagickwand-dev \
|
|
|
|
libgmp3-dev \
|
|
|
|
libc-client-dev \
|
|
|
|
libkrb5-dev \
|
|
|
|
smbclient \
|
|
|
|
libsmbclient-dev \
|
|
|
|
# LibreOffice \
|
|
|
|
&& rm -rf /var/lib/apt/lists/* \
|
|
|
|
&& docker-php-ext-configure imap --with-kerberos --with-imap-ssl \
|
2018-01-03 18:58:39 +00:00
|
|
|
&& ln -s "/usr/include/$(dpkg-architecture --query DEB_BUILD_MULTIARCH)/gmp.h" /usr/include/gmp.h \
|
2017-12-24 13:08:07 +00:00
|
|
|
&& docker-php-ext-install bz2 gmp imap \
|
|
|
|
&& pecl install imagick smbclient \
|
|
|
|
&& docker-php-ext-enable imagick smbclient \
|
|
|
|
&& mkdir /var/log/supervisord /var/run/supervisord \
|
|
|
|
&& echo "*/15 * * * * su - www-data -s /bin/bash -c \"php -f /var/www/html/cron.php\""| crontab -
|
|
|
|
|
|
|
|
COPY supervisord.conf /etc/supervisor/supervisord.conf
|
|
|
|
|
|
|
|
CMD ["/usr/bin/supervisord"]
|