Skip to content

Commit b7d569c

Browse files
authored
Merge pull request #51 from giannicic/php-8.0
Adjust packages and extensions in order to run on PHP 8.0
2 parents 1906844 + 978e662 commit b7d569c

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Dockerfile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,17 @@
2121
# docker build -f Dockerfile-dev -t api-tools .
2222
# docker run -it -p "8080:80" -v $PWD:/var/www api-tools
2323
#
24-
FROM php:7.3-apache
24+
FROM php:8.0-apache
2525

2626
RUN apt-get update \
27-
&& apt-get install -y git libzip-dev \
27+
&& apt-get install -y git libzip-dev libicu-dev \
2828
&& docker-php-ext-install zip \
29+
&& docker-php-ext-configure intl \
30+
&& docker-php-ext-install intl \
2931
&& a2enmod rewrite \
3032
&& sed -i 's!/var/www/html!/var/www/public!g' /etc/apache2/sites-available/000-default.conf \
3133
&& mv /var/www/html /var/www/public \
32-
&& curl -sS https://getcomposer.org/installer \
33-
| php -- --install-dir=/usr/local/bin --filename=composer \
34+
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer \
3435
&& echo "AllowEncodedSlashes On" >> /etc/apache2/apache2.conf
3536

3637
WORKDIR /var/www

0 commit comments

Comments
 (0)