Skip to content

Commit

Permalink
Merge pull request #51 from giannicic/php-8.0
Browse files Browse the repository at this point in the history
Adjust packages and extensions in order to run on PHP 8.0
  • Loading branch information
Ocramius authored May 6, 2022
2 parents 1906844 + 978e662 commit b7d569c
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,17 @@
# docker build -f Dockerfile-dev -t api-tools .
# docker run -it -p "8080:80" -v $PWD:/var/www api-tools
#
FROM php:7.3-apache
FROM php:8.0-apache

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

WORKDIR /var/www

0 comments on commit b7d569c

Please sign in to comment.