mirror of
https://github.com/hoellen/dockerfiles.git
synced 2025-07-01 22:55:39 +00:00
nextcloud: replace crond with script
This commit is contained in:
@ -8,7 +8,8 @@ ARG GPG_nextcloud="2880 6A87 8AE4 23A2 8372 792E D758 99B9 A724 937A"
|
||||
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 \
|
||||
@ -61,14 +62,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 \
|
||||
&& NEXTCLOUD_TARBALL="nextcloud-${NEXTCLOUD_VERSION}.tar.bz2" \
|
||||
@ -95,10 +94,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