2019-01-05 18:36:52 +01:00
|
|
|
FROM nextcloud:fpm-alpine
|
|
|
|
|
|
|
|
RUN set -ex; \
|
|
|
|
\
|
|
|
|
apk add --no-cache \
|
|
|
|
ffmpeg \
|
2019-02-01 21:04:24 +01:00
|
|
|
imagemagick \
|
2019-11-06 11:29:43 +01:00
|
|
|
procps \
|
2019-01-05 18:36:52 +01:00
|
|
|
samba-client \
|
|
|
|
supervisor \
|
|
|
|
# libreoffice \
|
|
|
|
;
|
|
|
|
|
|
|
|
RUN set -ex; \
|
|
|
|
\
|
|
|
|
apk add --no-cache --virtual .build-deps \
|
|
|
|
$PHPIZE_DEPS \
|
|
|
|
imap-dev \
|
|
|
|
krb5-dev \
|
2020-05-05 17:57:25 +02:00
|
|
|
openssl-dev \
|
2019-01-05 18:36:52 +01:00
|
|
|
samba-dev \
|
|
|
|
bzip2-dev \
|
|
|
|
; \
|
|
|
|
\
|
|
|
|
docker-php-ext-configure imap --with-kerberos --with-imap-ssl; \
|
|
|
|
docker-php-ext-install \
|
|
|
|
bz2 \
|
|
|
|
imap \
|
|
|
|
; \
|
|
|
|
pecl install smbclient; \
|
|
|
|
docker-php-ext-enable smbclient; \
|
|
|
|
\
|
|
|
|
runDeps="$( \
|
|
|
|
scanelf --needed --nobanner --format '%n#p' --recursive /usr/local/lib/php/extensions \
|
|
|
|
| tr ',' '\n' \
|
|
|
|
| sort -u \
|
|
|
|
| awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' \
|
|
|
|
)"; \
|
|
|
|
apk add --virtual .nextcloud-phpext-rundeps $runDeps; \
|
|
|
|
apk del .build-deps
|
|
|
|
|
|
|
|
RUN mkdir -p \
|
|
|
|
/var/log/supervisord \
|
|
|
|
/var/run/supervisord \
|
|
|
|
;
|
|
|
|
|
2020-01-09 15:05:36 +01:00
|
|
|
COPY supervisord.conf /
|
2019-01-05 18:36:52 +01:00
|
|
|
|
|
|
|
ENV NEXTCLOUD_UPDATE=1
|
|
|
|
|
2020-01-09 15:05:36 +01:00
|
|
|
CMD ["/usr/bin/supervisord", "-c", "/supervisord.conf"]
|