mirror of
https://github.com/nextcloud/docker.git
synced 2024-11-18 11:06:43 +01:00
52 lines
1.1 KiB
Text
52 lines
1.1 KiB
Text
|
FROM nextcloud:fpm-alpine
|
||
|
|
||
|
RUN set -ex; \
|
||
|
\
|
||
|
apk add --no-cache \
|
||
|
ffmpeg \
|
||
|
samba-client \
|
||
|
supervisor \
|
||
|
# libreoffice \
|
||
|
;
|
||
|
|
||
|
RUN set -ex; \
|
||
|
\
|
||
|
apk add --no-cache --virtual .build-deps \
|
||
|
$PHPIZE_DEPS \
|
||
|
imap-dev \
|
||
|
krb5-dev \
|
||
|
libressl-dev \
|
||
|
samba-dev \
|
||
|
bzip2-dev \
|
||
|
gmp-dev \
|
||
|
; \
|
||
|
\
|
||
|
docker-php-ext-configure imap --with-kerberos --with-imap-ssl; \
|
||
|
docker-php-ext-install \
|
||
|
bz2 \
|
||
|
gmp \
|
||
|
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 \
|
||
|
;
|
||
|
|
||
|
COPY supervisord.conf /etc/supervisor/supervisord.conf
|
||
|
|
||
|
ENV NEXTCLOUD_UPDATE=1
|
||
|
|
||
|
CMD ["/usr/bin/supervisord"]
|