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 61f2137
Show file tree
Hide file tree
Showing 4 changed files with 1,312 additions and 1,678 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
7 changes: 3 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,12 @@
"laminas-api-tools/api-tools-asset-manager": "^1.2",
"laminas/laminas-coding-standard": "~2.3.0",
"laminas/laminas-composer-autoloading": "^2.1",
"laminas/laminas-developer-tools": "^1.2.1",
"laminas/laminas-test": "^3.5",
"laminas/laminas-developer-tools": "^2.3.0",
"laminas/laminas-test": "^4.0",
"phpunit/phpunit": "^9.5",
"psalm/plugin-phpunit": "^0.16.1",
"roave/security-advisories": "dev-master",
"vimeo/psalm": "^4.10",
"zfcampus/zf-deploy": "^1.3"
"vimeo/psalm": "^4.10"
},
"conflict": {
"laminas/laminas-hydrator": "<2.0",
Expand Down
Loading

0 comments on commit 61f2137

Please sign in to comment.