-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
29 lines (27 loc) · 819 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
FROM php:8.3-bookworm
LABEL maintainer="Andrea Falco <andrea@falco.sh>"
# PHP ext-imagick
ARG PHPEXT_IMAGICK_VERSION=3.7.0
RUN set -eux; \
persistentDeps=" \
libmagickwand-6.q16-6 \
"; \
buildDeps=" \
libmagickwand-dev \
"; \
DEBIAN_FRONTEND=noninteractive apt-get update; \
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
${persistentDeps} \
${buildDeps} \
; \
\
pecl bundle -d /usr/src/php/ext imagick-${PHPEXT_IMAGICK_VERSION}; \
docker-php-ext-install -j$(nproc) imagick; \
\
DEBIAN_FRONTEND=noninteractive apt-get purge -y --auto-remove \
-o APT::AutoRemove::RecommendsImportant=false \
-o APT::AutoRemove::SuggestsImportant=false \
${buildDeps} \
; \
docker-php-source delete; \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*