mirror of
https://github.com/nextcloud/docker.git
synced 2025-03-20 21:35:08 +01:00
34 lines
1.4 KiB
Docker
34 lines
1.4 KiB
Docker
FROM nextcloud:13.0.8-apache
|
|
|
|
RUN mkdir -p /usr/share/man/man1 \
|
|
&& apt-get update && apt-get install -y \
|
|
supervisor \
|
|
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 \
|
|
&& ln -s "/usr/include/$(dpkg-architecture --query DEB_BUILD_MULTIARCH)/gmp.h" /usr/include/gmp.h \
|
|
&& docker-php-ext-install bz2 gmp imap \
|
|
&& pecl install imagick smbclient \
|
|
&& docker-php-ext-enable imagick smbclient \
|
|
#### BEGIN Blackfire
|
|
&& version=$(php -r "echo PHP_MAJOR_VERSION.PHP_MINOR_VERSION;") \
|
|
&& curl -A "Docker" -o /tmp/blackfire-probe.tar.gz -D - -L -s https://blackfire.io/api/v1/releases/probe/php/linux/amd64/$version \
|
|
&& tar zxpf /tmp/blackfire-probe.tar.gz -C /tmp \
|
|
&& mv /tmp/blackfire-*.so $(php -r "echo ini_get('extension_dir');")/blackfire.so \
|
|
&& printf "extension=blackfire.so\nblackfire.agent_socket=tcp://blackfire:8707\n" > $PHP_INI_DIR/conf.d/blackfire.ini \
|
|
#### END Blackfire
|
|
&& mkdir /var/log/supervisord /var/run/supervisord \
|
|
&& echo '*/10 * * * * php -f /var/www/html/occ preview:pre-generate' >> /var/spool/cron/crontabs/www-data
|
|
|
|
COPY supervisord.conf /etc/supervisor/supervisord.conf
|
|
|
|
ENV NEXTCLOUD_UPDATE=1
|
|
|
|
CMD ["/usr/bin/supervisord"]
|