Skip to content

Commit 3ad76b5

Browse files
authored
Merge pull request #58 from sourceboat/feature/update_php_to_version_8
Update docker-laravel to use PHP8
2 parents f30fedc + d376528 commit 3ad76b5

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

Dockerfile

Lines changed: 6 additions & 9 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" \
@@ -24,8 +24,6 @@ RUN apk info \
2424
nginx \
2525
zlib-dev \
2626
icu-dev \
27-
imagemagick \
28-
imagemagick-dev \
2927
libzip-dev \
3028
libjpeg-turbo-dev \
3129
libpng-dev \
@@ -36,9 +34,9 @@ RUN apk info \
3634
nodejs \
3735
npm \
3836
composer \
39-
php7-tokenizer \
40-
php7-simplexml \
41-
php7-dom \
37+
php8-tokenizer \
38+
php8-simplexml \
39+
php8-dom \
4240
mysql-client \
4341
mariadb-connector-c \
4442
yarn@edge \
@@ -55,11 +53,10 @@ RUN apk info \
5553
iconv \
5654
&& pecl install \
5755
redis \
58-
imagick \
5956
&& docker-php-ext-enable \
6057
redis \
61-
imagick \
62-
&& apk del .build-deps
58+
&& apk del .build-deps \
59+
&& rm -rf /tmp/* /var/cache/apk/*
6360

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

0 commit comments

Comments
 (0)