2017-03-13 21:48:51 +01:00
|
|
|
FROM nextcloud:apache
|
2017-07-12 14:08:20 +02:00
|
|
|
|
2019-01-05 18:43:27 +01:00
|
|
|
RUN set -ex; \
|
|
|
|
\
|
|
|
|
savedAptMark="$(apt-mark showmanual)"; \
|
|
|
|
\
|
|
|
|
apt-get update; \
|
|
|
|
apt-get install -y --no-install-recommends \
|
|
|
|
libc-client-dev \
|
|
|
|
libkrb5-dev \
|
|
|
|
; \
|
|
|
|
\
|
|
|
|
docker-php-ext-configure imap --with-kerberos --with-imap-ssl; \
|
|
|
|
docker-php-ext-install imap; \
|
|
|
|
\
|
|
|
|
# reset apt-mark's "manual" list so that "purge --auto-remove" will remove all build dependencies
|
|
|
|
apt-mark auto '.*' > /dev/null; \
|
|
|
|
apt-mark manual $savedAptMark; \
|
|
|
|
ldd "$(php -r 'echo ini_get("extension_dir");')"/*.so \
|
|
|
|
| awk '/=>/ { print $3 }' \
|
|
|
|
| sort -u \
|
|
|
|
| xargs -r dpkg-query -S \
|
|
|
|
| cut -d: -f1 \
|
|
|
|
| sort -u \
|
|
|
|
| xargs -rt apt-mark manual; \
|
|
|
|
\
|
|
|
|
apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; \
|
|
|
|
rm -rf /var/lib/apt/lists/*
|