mirror of
https://github.com/hoellen/dockerfiles.git
synced 2025-07-01 06:35:38 +00:00
nextcloud: replace crond with script
This commit is contained in:
@ -6,7 +6,8 @@ ARG GNU_LIBICONV_VERSION=1.14
|
||||
ENV UID=991 GID=991 \
|
||||
UPLOAD_MAX_SIZE=10G \
|
||||
APC_SHM_SIZE=128M \
|
||||
OPCACHE_MEM_SIZE=128
|
||||
OPCACHE_MEM_SIZE=128 \
|
||||
CRON_PERIOD=15m
|
||||
|
||||
RUN echo "@commuedge https://nl.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories \
|
||||
&& echo "@testing https://nl.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories \
|
||||
@ -59,14 +60,12 @@ RUN echo "@commuedge https://nl.alpinelinux.org/alpine/edge/community" >> /etc/a
|
||||
&& wget -q http://ftp.gnu.org/pub/gnu/libiconv/libiconv-${GNU_LIBICONV_VERSION}.tar.gz \
|
||||
&& tar xzf libiconv-${GNU_LIBICONV_VERSION}.tar.gz && cd libiconv-${GNU_LIBICONV_VERSION} \
|
||||
&& ./configure --prefix=/usr/local \
|
||||
&& wget https://raw.githubusercontent.com/mxe/mxe/7e231efd245996b886b501dad780761205ecf376/src/libiconv-1-fixes.patch \
|
||||
&& wget -q https://raw.githubusercontent.com/mxe/mxe/7e231efd245996b886b501dad780761205ecf376/src/libiconv-1-fixes.patch \
|
||||
&& patch -p1 -u < libiconv-1-fixes.patch \
|
||||
&& make && make install && libtool --finish /usr/local/lib && cd /tmp \
|
||||
&& wget -q http://is1.php.net/get/php-7.0.11.tar.gz/from/this/mirror -O php7.tar.gz \
|
||||
&& tar xzf php7.tar.gz && cd /tmp/php-7.0.11/ext/iconv && phpize7 \
|
||||
&& ./configure \
|
||||
--with-iconv=/usr/local \
|
||||
--with-php-config=/usr/bin/php-config7 \
|
||||
&& ./configure --with-iconv=/usr/local --with-php-config=/usr/bin/php-config7 \
|
||||
&& make && cp modules/iconv.so /usr/lib/php7/modules && cd /tmp \
|
||||
&& echo "extension=iconv.so" > /etc/php7/conf.d/00_iconv.ini \
|
||||
&& wget -q https://download.nextcloud.com/server/daily/latest.tar.bz2 \
|
||||
@ -80,10 +79,9 @@ COPY opcache.ini /etc/php7/conf.d/00_opcache.ini
|
||||
COPY apcu.ini /etc/php7/conf.d/apcu.ini
|
||||
COPY run.sh /usr/local/bin/run.sh
|
||||
COPY occ /usr/local/bin/occ
|
||||
COPY cron /etc/periodic/15min/nextcloud
|
||||
COPY s6.d /etc/s6.d
|
||||
|
||||
RUN chmod +x /usr/local/bin/* /etc/periodic/15min/nextcloud /etc/s6.d/*/*
|
||||
RUN chmod +x /usr/local/bin/* /etc/s6.d/*/*
|
||||
|
||||
VOLUME /data /config /apps2
|
||||
|
||||
|
Reference in New Issue
Block a user