2017-12-24 14:08:07 +01:00
|
|
|
FROM nextcloud:apache
|
|
|
|
|
2019-01-05 18:43:27 +01:00
|
|
|
RUN set -ex; \
|
|
|
|
\
|
|
|
|
apt-get update; \
|
|
|
|
apt-get install -y --no-install-recommends \
|
2017-12-24 14:08:07 +01:00
|
|
|
ffmpeg \
|
2019-01-05 18:43:27 +01:00
|
|
|
smbclient \
|
|
|
|
supervisor \
|
|
|
|
# libreoffice \
|
|
|
|
; \
|
|
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
|
|
RUN set -ex; \
|
|
|
|
\
|
|
|
|
savedAptMark="$(apt-mark showmanual)"; \
|
|
|
|
\
|
|
|
|
apt-get update; \
|
|
|
|
apt-get install -y --no-install-recommends \
|
2018-12-11 01:06:21 +01:00
|
|
|
libbz2-dev \
|
2017-12-24 14:08:07 +01:00
|
|
|
libc-client-dev \
|
2019-01-05 18:43:27 +01:00
|
|
|
libgmp3-dev \
|
2017-12-24 14:08:07 +01:00
|
|
|
libkrb5-dev \
|
|
|
|
libsmbclient-dev \
|
2019-01-05 18:43:27 +01:00
|
|
|
; \
|
|
|
|
\
|
|
|
|
docker-php-ext-configure imap --with-kerberos --with-imap-ssl; \
|
|
|
|
ln -s "/usr/include/$(dpkg-architecture --query DEB_BUILD_MULTIARCH)/gmp.h" /usr/include/gmp.h; \
|
|
|
|
docker-php-ext-install \
|
|
|
|
bz2 \
|
|
|
|
gmp \
|
|
|
|
imap \
|
|
|
|
; \
|
|
|
|
pecl install smbclient; \
|
|
|
|
docker-php-ext-enable smbclient; \
|
|
|
|
\
|
|
|
|
# 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/*
|
|
|
|
|
|
|
|
RUN mkdir -p \
|
|
|
|
/var/log/supervisord \
|
|
|
|
/var/run/supervisord \
|
|
|
|
;
|
2017-12-24 14:08:07 +01:00
|
|
|
|
|
|
|
COPY supervisord.conf /etc/supervisor/supervisord.conf
|
|
|
|
|
2018-10-17 10:25:26 +02:00
|
|
|
ENV NEXTCLOUD_UPDATE=1
|
|
|
|
|
2017-12-24 14:08:07 +01:00
|
|
|
CMD ["/usr/bin/supervisord"]
|