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
RUN set -ex; \
\
apk add --no-cache \
imagemagick \
;
RUN set -ex; \
\
apk add --no-cache --virtual .build-deps \
libressl-dev \
bzip2-dev \
; \
docker-php-ext-configure imap --with-imap-ssl; \
docker-php-ext-install imap; \
apk del .build-deps
COPY redis.ini /usr/local/etc/php/conf.d/
COPY --chown=www-data:root config/* /usr/src/nextcloud/config/
COPY --from=apps --chown=www-data:root /apps/* /usr/src/nextcloud/apps/
RUN for app in $(cat /usr/src/nextcloud/apps/remove-list);do \
rm /usr/src/nextcloud/config/autoconfig.php /usr/src/nextcloud/config/config.sample.php;