Skip to content

Commit

Permalink
Adjust packages and extensions in order to run on PHP 8.0
Browse files Browse the repository at this point in the history
Signed-off-by: Gianni Ciccarelli <[email protected]>
  • Loading branch information
giannicic committed May 5, 2022
1 parent 1906844 commit 978e662
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 978e662

Please sign in to comment.