Newer
Older
ARG VERSION
FROM alpine as apps
RUN apk add --no-cache jq curl bash
COPY apps /apps
WORKDIR /apps
ARG VERSION
RUN ./install.sh
RUN rm ./install.sh ./install-list
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 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 ./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
RUN for app in $(cat /usr/src/nextcloud/apps/remove-list);do \
echo @import \'indie.scss\'\; >> /usr/src/nextcloud/core/css/server.scss; \
rm /usr/src/nextcloud/config/autoconfig.php /usr/src/nextcloud/config/config.sample.php;