2020-07-09 16:47:46 +00:00
|
|
|
# FROM nextcloud:12.0.4
|
|
|
|
# FROM nextcloud:13.0.12
|
|
|
|
# FROM nextcloud:16
|
|
|
|
# FROM nextcloud:17
|
2020-07-09 17:09:52 +00:00
|
|
|
# FROM nextcloud:18.0.6-apache
|
2020-10-07 08:16:04 +00:00
|
|
|
# FROM nextcloud:19.0.3-apache
|
2021-01-04 10:28:51 +00:00
|
|
|
# FROM nextcloud:20.0.0-apache
|
2021-02-23 14:27:58 +00:00
|
|
|
# FROM nextcloud:20.0.5-apache
|
2021-07-12 06:49:53 +00:00
|
|
|
# FROM nextcloud:21.0.2-apache
|
2022-01-09 14:22:56 +00:00
|
|
|
# FROM nextcloud:22.2-apache
|
2022-05-08 11:40:33 +00:00
|
|
|
# FROM nextcloud:23.0.2-apache
|
2022-11-15 11:33:48 +00:00
|
|
|
# FROM nextcloud:24.0.2-apache
|
2023-03-23 08:55:40 +00:00
|
|
|
# FROM nextcloud:25.0.4-apache
|
2023-08-31 10:15:57 +00:00
|
|
|
# FROM nextcloud:26.0.2-apache
|
2023-10-06 08:08:20 +00:00
|
|
|
# FROM nextcloud:27.0.2-apache
|
2023-11-09 15:48:54 +00:00
|
|
|
# FROM nextcloud:27.1.1-apache
|
|
|
|
FROM nextcloud:27.1.3-apache
|
2023-03-23 08:55:40 +00:00
|
|
|
|
2017-07-06 11:04:36 +00:00
|
|
|
|
2022-01-21 09:25:25 +00:00
|
|
|
# This is a stupid comment for a demo (remove later)
|
|
|
|
|
2021-01-23 23:52:03 +00:00
|
|
|
RUN apt-get update \
|
2023-03-23 09:48:03 +00:00
|
|
|
&& apt-get install -y clamdscan nano ghostscript \
|
2021-01-23 23:52:03 +00:00
|
|
|
&& apt-get clean
|
|
|
|
|
2021-11-09 14:27:22 +00:00
|
|
|
#
|
2021-01-23 23:32:22 +00:00
|
|
|
## Enable REDIS extension
|
2021-01-23 23:46:35 +00:00
|
|
|
# RUN pecl channel-update pecl.php.net \
|
|
|
|
# && sh -c "yes '' | pecl install redis" \
|
|
|
|
# && rm -rf /tmp/pear \
|
|
|
|
# && rm -f /usr/local/etc/php/glenux-redis.ini \
|
|
|
|
# && echo "extension=redis.so" >> /usr/local/etc/php/glenux-redis.ini \
|
|
|
|
# && docker-php-ext-enable redis
|
2021-01-23 23:32:22 +00:00
|
|
|
|
|
|
|
## Enable APCU extension
|
2021-01-23 23:52:03 +00:00
|
|
|
# RUN pecl channel-update pecl.php.net \
|
|
|
|
# && pecl install apcu-${APCU_VERSION} \
|
|
|
|
# && rm -f /usr/local/etc/php/glenux-apcu.ini \
|
|
|
|
# && echo "extension=apcu.so" >> /usr/local/etc/php/glenux-apcu.ini \
|
|
|
|
# && echo "apc.enable_cli=1" >> /usr/local/etc/php/glenux-apcu.ini \
|
|
|
|
# && echo "apc.enable=1" >> /usr/local/etc/php/glenux-apcu.ini \
|
|
|
|
# && docker-php-ext-enable apcu
|
2021-01-23 23:07:42 +00:00
|
|
|
|
2019-10-07 17:13:06 +00:00
|
|
|
# Mandatory for bookmark extension
|
2019-11-19 20:57:26 +00:00
|
|
|
# but missing from deb packages
|
|
|
|
# RUN apt-get update \
|
|
|
|
# && apt-get install -y php7.3-gmp
|
2019-10-07 17:13:06 +00:00
|
|
|
|
2021-03-27 16:18:15 +00:00
|
|
|
##
|
|
|
|
## GMP Support (for bookmark extension)
|
|
|
|
##
|
|
|
|
RUN apt-get update && apt-get install -y libgmp3-dev \
|
|
|
|
&& docker-php-ext-install gmp
|
|
|
|
|
|
|
|
##
|
2023-03-23 10:19:25 +00:00
|
|
|
## SVG and LibreSign support
|
2021-03-27 16:18:15 +00:00
|
|
|
##
|
|
|
|
RUN apt-get update && apt-get install -y \
|
2021-03-27 16:21:31 +00:00
|
|
|
libmagickcore-6.q16-6-extra \
|
2022-04-07 07:36:25 +00:00
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
2021-03-27 16:01:42 +00:00
|
|
|
|
2023-03-23 10:19:25 +00:00
|
|
|
RUN sed -i'' 's|.*<policy domain="coder".*"PDF".*|<policy domain="coder" rights="read \| write" pattern="PDF" />|g' \
|
|
|
|
/etc/ImageMagick-6/policy.xml
|
|
|
|
|
2021-03-27 16:01:42 +00:00
|
|
|
##
|
|
|
|
## Raise memory limit for PHP
|
|
|
|
##
|
|
|
|
ENV PHP_MEMORY_LIMIT=1024M
|
2023-03-14 12:13:11 +00:00
|
|
|
ENV PHP_UPLOAD_LIMIT=1800M
|
2023-03-24 10:58:07 +00:00
|
|
|
RUN echo '[opcache]' > /usr/local/etc/php/conf.d/opcache.ini \
|
|
|
|
&& echo 'opcache.memory_consumption=256' >> /usr/local/etc/php/conf.d/opcache.ini \
|
|
|
|
&& echo '[PHP]' > /usr/local/etc/php/conf.d/memory-limit.ini \
|
|
|
|
&& echo 'memory_limit=1024M' >> /usr/local/etc/php/conf.d/memory-limit.ini
|
2021-03-27 16:01:42 +00:00
|
|
|
|
|
|
|
##
|
|
|
|
## CRON SETUP
|
|
|
|
##
|
|
|
|
## Based on https://github.com/nextcloud/docker/tree/master/.examples/dockerfiles/cron/apache
|
2021-03-27 16:18:15 +00:00
|
|
|
##
|
2023-03-24 10:58:07 +00:00
|
|
|
RUN echo '*/5 * * * * php -d memory_limit=1024M -f /var/www/html/cron.php' \
|
|
|
|
> /var/spool/cron/crontabs/www-data
|
|
|
|
|
2021-03-27 16:01:42 +00:00
|
|
|
RUN apt-get update && apt-get install -y \
|
|
|
|
supervisor \
|
|
|
|
&& rm -rf /var/lib/apt/lists/* \
|
|
|
|
&& mkdir /var/log/supervisord /var/run/supervisord
|
|
|
|
COPY supervisord.conf /etc/supervisord.conf
|
|
|
|
|
2023-02-21 14:18:36 +00:00
|
|
|
COPY app.json /app/app.json
|
2023-02-26 00:08:17 +00:00
|
|
|
COPY postdeploy.sh /app/postdeploy.sh
|
2021-03-27 16:17:19 +00:00
|
|
|
|
2021-03-27 16:01:42 +00:00
|
|
|
ENV NEXTCLOUD_UPDATE=1
|
|
|
|
|
2022-01-09 14:22:56 +00:00
|
|
|
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisord.conf"]
|
2021-03-27 16:01:42 +00:00
|
|
|
|