Skip to content

Commit 53842dd

Browse files
authored
Update Dockerfile
replace GD with Imagick
1 parent 176cf4e commit 53842dd

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

Dockerfile

+5-9
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
#ARG BASE_TAG=5.0.3-php8.2-alpine
22
ARG BASE_TAG=6.0-php8.3-alpine
33
#php8.2-alpine -> = 5.1 swoole = alpine 3.19 = php 8.2 rc 18 with psql bug
4-
54
# https://hub.docker.com/r/phpswoole/swoole
65
FROM phpswoole/swoole:$BASE_TAG
6+
77
WORKDIR /var/www/html
88

99
RUN set -ex \
@@ -18,19 +18,15 @@ RUN set -ex \
1818
openssl \
1919
postgresql \
2020
postgresql-dev \
21-
jpeg-dev \
22-
libpng-dev \
23-
libwebp-dev \
24-
libjpeg-turbo \
2521
libzip-dev \
26-
freetype-dev \
2722
imagemagick-dev \
2823
imagemagick && \
29-
docker-php-ext-configure gd --with-freetype --with-jpeg --with-webp && \
30-
docker-php-ext-install gd ctype pdo pdo_pgsql pcntl exif zip intl && \
24+
pecl install imagick && \
25+
docker-php-ext-enable imagick && \
26+
docker-php-ext-install ctype pdo pdo_pgsql pcntl exif zip intl && \
3127
apk del autoconf && \
3228
rm -rf /var/cache/apk/* /tmp/pear /usr/src/*
33-
29+
3430
# Configure nginx
3531
COPY config/nginx.conf /etc/nginx/nginx.conf
3632

0 commit comments

Comments
 (0)