FROM nextcloud:%%VARIANT%%-fpm-alpine #RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.tuna.tsinghua.edu.cn/g' /etc/apk/repositories RUN set -ex; \ \ apk add --no-cache \ ffmpeg \ imagemagick \ procps \ samba-client \ supervisor \ sudo \ # libreoffice \ ; RUN set -ex; \ \ apk add --no-cache --virtual .build-deps \ $PHPIZE_DEPS \ imap-dev \ krb5-dev \ openssl-dev \ samba-dev \ bzip2-dev \ ; \ \ docker-php-ext-configure imap --with-kerberos --with-imap-ssl; \ docker-php-ext-install \ bz2 \ imap \ ; \ pecl install smbclient; \ docker-php-ext-enable smbclient; \ \ runDeps="$( \ scanelf --needed --nobanner --format '%n#p' --recursive /usr/local/lib/php/extensions \ | tr ',' '\n' \ | sort -u \ | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' \ )"; \ apk add --virtual .nextcloud-phpext-rundeps $runDeps; \ apk del .build-deps RUN mkdir -p \ /var/log/supervisord \ /var/run/supervisord \ ; COPY supervisord.alpine.conf / COPY a2-tracker.sh / COPY toucha2.sh / RUN set -ex; \ \ apk add --no-cache \ aria2 \ py3-pip \ bash \ wget \ curl \ p7zip \ ; \ pip3 install --break-system-packages youtube-dl; \ ln -s /usr/bin/youtube-dl /usr/local/bin/youtube-dl; COPY aria2.conf / # 使用生产环境的php.ini /usr/local/etc/php/php.ini RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini" ENV NEXTCLOUD_UPDATE=1 CMD ["/usr/bin/supervisord", "-c", "/supervisord.alpine.conf"]