Skip to content

Commit f3a9c0e

Browse files
author
Kevin Buchholz
committed
make changes to the dockerfile for php8
1 parent f30fedc commit f3a9c0e

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

Dockerfile

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM php:7.4.19-fpm-alpine
1+
FROM php:8.0.7-fpm-alpine
22

33
ENV PHP_OPCACHE_VALIDATE_TIMESTAMPS="0" \
44
PHP_OPCACHE_MAX_ACCELERATED_FILES="10000" \
@@ -36,12 +36,17 @@ RUN apk info \
3636
nodejs \
3737
npm \
3838
composer \
39-
php7-tokenizer \
40-
php7-simplexml \
41-
php7-dom \
39+
php8-tokenizer \
40+
php8-simplexml \
41+
php8-dom \
4242
mysql-client \
4343
mariadb-connector-c \
4444
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 \
4550
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
4651
&& docker-php-ext-install -j$(nproc) \
4752
gd \
@@ -55,11 +60,11 @@ RUN apk info \
5560
iconv \
5661
&& pecl install \
5762
redis \
58-
imagick \
5963
&& docker-php-ext-enable \
6064
redis \
6165
imagick \
62-
&& apk del .build-deps
66+
&& apk del .build-deps \
67+
&& rm -rf /tmp/* /var/cache/apk/*
6368

6469
# fix iconv (see https://github.com/docker-library/php/issues/240#issuecomment-305038173)
6570
RUN apk add --no-cache --repository http://dl-cdn.alpinelinux.org/alpine/edge/testing/ gnu-libiconv

0 commit comments

Comments
 (0)