Skip to content

Commit b00a0cf

Browse files
committed
fix: pin libmagickcore-7.q16-10-extra to prevent auto-remove
1 parent eea80c5 commit b00a0cf

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

nextcloud/Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,10 @@ RUN set -ex; \
148148
| awk 'sub(":$", "", $1) { print $1 }' \
149149
| sort -u \
150150
| xargs -rt apt-mark manual; \
151+
# libmagickcore-extra provides optional ImageMagick delegates (HEIC, extra codecs).
152+
# ldd does not trace it because it is loaded at runtime via dlopen, so it would
153+
# be removed by --auto-remove without this explicit pin.
154+
apt-mark manual libmagickcore-7.q16-10-extra; \
151155
apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; \
152156
apt-get clean; \
153157
rm -rf /var/lib/apt/lists/*

0 commit comments

Comments
 (0)