File tree 1 file changed +11
-6
lines changed 1 file changed +11
-6
lines changed Original file line number Diff line number Diff line change 1
- FROM php:7.4.19 -fpm-alpine
1
+ FROM php:8.0.7 -fpm-alpine
2
2
3
3
ENV PHP_OPCACHE_VALIDATE_TIMESTAMPS="0" \
4
4
PHP_OPCACHE_MAX_ACCELERATED_FILES="10000" \
@@ -36,12 +36,17 @@ RUN apk info \
36
36
nodejs \
37
37
npm \
38
38
composer \
39
- php7 -tokenizer \
40
- php7 -simplexml \
41
- php7 -dom \
39
+ php8 -tokenizer \
40
+ php8 -simplexml \
41
+ php8 -dom \
42
42
mysql-client \
43
43
mariadb-connector-c \
44
44
yarn@edge \
45
+ && git clone https://github.com/Imagick/imagick \
46
+ && cd imagick \
47
+ && git checkout master && git pull \
48
+ && phpize && ./configure && make && make install \
49
+ && cd .. && rm -Rf imagick \
45
50
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
46
51
&& docker-php-ext-install -j$(nproc) \
47
52
gd \
@@ -55,11 +60,11 @@ RUN apk info \
55
60
iconv \
56
61
&& pecl install \
57
62
redis \
58
- imagick \
59
63
&& docker-php-ext-enable \
60
64
redis \
61
65
imagick \
62
- && apk del .build-deps
66
+ && apk del .build-deps \
67
+ && rm -rf /tmp/* /var/cache/apk/*
63
68
64
69
# fix iconv (see https://github.com/docker-library/php/issues/240#issuecomment-305038173)
65
70
RUN apk add --no-cache --repository http://dl-cdn.alpinelinux.org/alpine/edge/testing/ gnu-libiconv
You can’t perform that action at this time.
0 commit comments