File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,10 +2,57 @@ FROM nextcloud:18-fpm
22
33RUN { echo 'listen = /sock/docker.sock' ; } >> /usr/local/etc/php-fpm.d/zz-docker.conf
44
5- RUN apt-get update && apt-get install -y \
6- supervisor \
7- && rm -rf /var/lib/apt/lists/* \
8- && mkdir /var/log/supervisord /var/run/supervisord
5+ RUN set -ex; \
6+ \
7+ apt-get update; \
8+ apt-get install -y --no-install-recommends \
9+ ffmpeg \
10+ libmagickcore-6.q16-6-extra \
11+ procps \
12+ smbclient \
13+ supervisor \
14+ libreoffice \
15+ ; \
16+ rm -rf /var/lib/apt/lists/*
17+
18+ RUN set -ex; \
19+ \
20+ savedAptMark="$(apt-mark showmanual)" ; \
21+ \
22+ apt-get update; \
23+ apt-get install -y --no-install-recommends \
24+ libbz2-dev \
25+ libc-client-dev \
26+ libkrb5-dev \
27+ libsmbclient-dev \
28+ ; \
29+ \
30+ docker-php-ext-configure imap --with-kerberos --with-imap-ssl; \
31+ docker-php-ext-install \
32+ bz2 \
33+ imap \
34+ ; \
35+ pecl install smbclient; \
36+ docker-php-ext-enable smbclient; \
37+ \
38+ # reset apt-mark's "manual" list so that "purge --auto-remove" will remove all build dependencies
39+ apt-mark auto '.*' > /dev/null; \
40+ apt-mark manual $savedAptMark; \
41+ ldd "$(php -r 'echo ini_get(" extension_dir");')" /*.so \
42+ | awk '/=>/ { print $3 }' \
43+ | sort -u \
44+ | xargs -r dpkg-query -S \
45+ | cut -d: -f1 \
46+ | sort -u \
47+ | xargs -rt apt-mark manual; \
48+ \
49+ apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; \
50+ rm -rf /var/lib/apt/lists/*
51+
52+ RUN mkdir -p \
53+ /var/log/supervisord \
54+ /var/run/supervisord \
55+ ;
956
1057COPY supervisord.conf /
1158
You can’t perform that action at this time.
0 commit comments