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 --chown=www-data:root config/* /usr/src/nextcloud/config/
COPY --from=apps --chown=www-data:root /apps/* /usr/src/nextcloud/apps/
COPY ./external/chat.png /usr/src/nextcloud/apps/external/img/chat.png
COPY install.sh /install.sh
RUN for app in $(cat /usr/src/nextcloud/apps/remove-list);do \
sed -i '/settings\.svg/a \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ $this->copyDefaultIcon($output, $folder, '\''chat.png'\'');' /usr/src/nextcloud/apps/external/lib/Migration/CopyDefaultIcons.php; \
sed -i '/settings\.svg/a \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ $this->copyDefaultIcon($output, $folder, '\''users.png'\'');' /usr/src/nextcloud/apps/external/lib/Migration/CopyDefaultIcons.php; \
touch ./data/.ocdata; \
chown -R www-data:root /usr/src/nextcloud; \
rm /usr/src/nextcloud/config/autoconfig.php /usr/src/nextcloud/config/config.sample.php;