Skip to content

Commit

Permalink
Merge pull request #58 from sourceboat/feature/update_php_to_version_8
Browse files Browse the repository at this point in the history
Update docker-laravel to use PHP8
  • Loading branch information
NeroAzure authored Jun 23, 2021
2 parents f30fedc + d376528 commit 3ad76b5
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM php:7.4.19-fpm-alpine
FROM php:8.0.7-fpm-alpine

ENV PHP_OPCACHE_VALIDATE_TIMESTAMPS="0" \
PHP_OPCACHE_MAX_ACCELERATED_FILES="10000" \
Expand All @@ -24,8 +24,6 @@ RUN apk info \
nginx \
zlib-dev \
icu-dev \
imagemagick \
imagemagick-dev \
libzip-dev \
libjpeg-turbo-dev \
libpng-dev \
Expand All @@ -36,9 +34,9 @@ RUN apk info \
nodejs \
npm \
composer \
php7-tokenizer \
php7-simplexml \
php7-dom \
php8-tokenizer \
php8-simplexml \
php8-dom \
mysql-client \
mariadb-connector-c \
yarn@edge \
Expand All @@ -55,11 +53,10 @@ RUN apk info \
iconv \
&& pecl install \
redis \
imagick \
&& docker-php-ext-enable \
redis \
imagick \
&& apk del .build-deps
&& apk del .build-deps \
&& rm -rf /tmp/* /var/cache/apk/*

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

0 comments on commit 3ad76b5

Please sign in to comment.