Skip to content

Commit 5617fff

Browse files
committed
Upgrade to full Nextcloud installation.
1 parent c0109ca commit 5617fff

1 file changed

Lines changed: 51 additions & 4 deletions

File tree

Dockerfile

Lines changed: 51 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,57 @@ FROM nextcloud:18-fpm
22

33
RUN { 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

1057
COPY supervisord.conf /
1158

0 commit comments

Comments
 (0)