ARG MARKETTING_VERSION ARG PATCH_VERSION FROM alpine as apps RUN apk add --no-cache jq curl bash patch COPY apps /apps WORKDIR /apps ARG MINOR_VERSION RUN ./install.sh RUN rm ./install.sh ./install-list FROM nextcloud:${MARKETTING_VERSION}-fpm-alpine ENV VERSION $PATCH_VERSION RUN apk add --no-cache patch jq COPY redis.ini /usr/local/etc/php/conf.d/ COPY opcache-recommended.ini /usr/local/etc/php/conf.d/opcache.ini COPY php-fpm.conf /usr/local/etc/php-fpm.conf COPY --chown=www-data:root ./runtime /runtime COPY --chown=www-data:root config/* /usr/src/nextcloud/config/ COPY --from=apps --chown=www-data:root /apps/* /usr/src/nextcloud/apps/ COPY --chown=www-data:root ./apps/indie_external /usr/src/nextcloud/apps/indie_external COPY --chown=www-data:root ./apps/multioffice /usr/src/nextcloud/apps/multioffice WORKDIR /usr/src/nextcloud COPY ./img/logo /usr/src/nextcloud/core/img/logo COPY ./img/favicon.ico /usr/src/nextcloud/core/img/favicon.ico COPY ./css/indie.scss /usr/src/nextcloud/core/css/indie.scss COPY install.sh /install.sh RUN for app in $(cat /usr/src/nextcloud/apps/remove-list);do \ echo "removing app $app"; \ rm -R /usr/src/nextcloud/apps/$app; \ done; \ touch ./data/.ocdata; \ echo @import \'indie.scss\'\; >> /usr/src/nextcloud/core/css/server.scss; \ chown -R www-data:root /usr/src/nextcloud; \ rm /usr/src/nextcloud/apps/remove-list; \ rm -rf custom_apps/; \ rm /usr/src/nextcloud/config/autoconfig.php /usr/src/nextcloud/config/config.sample.php; RUN apk add --no-cache fcgi COPY php-fpm-healthcheck /php-fpm-healthcheck USER www-data ENTRYPOINT [""] CMD [""]