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 ./img/external/chat.png /usr/src/nextcloud/apps/external/img/chat.png
COPY ./img/external/users.png /usr/src/nextcloud/apps/external/img/users.png
COPY ./img/external/lifesaver.png /usr/src/nextcloud/apps/external/img/lifesaver.png
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 \
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; \
sed -i '/settings\.svg/a \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ $this->copyDefaultIcon($output, $folder, '\''lifesaver.png'\'');' /usr/src/nextcloud/apps/external/lib/Migration/CopyDefaultIcons.php; \
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;