Adjust packages and extensions in order to run on PHP 8.0#51
Conversation
|
@giannicic But updating the Docker file is also good. |
Signed-off-by: Gianni Ciccarelli <[email protected]>
Ah ok, sorry. I haven't seen that composer works with --ignore-platform-req=php. I was following the instructions here https://api-tools.getlaminas.org/ and on PHP8 it gives the same errors reported in #44 |
| && 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 \ |
There was a problem hiding this comment.
Not important, but we should probably use multi-stage here, pinning composer to a specific version:
FROM composer:2.3.3 AS get-composer
FROM php:8.0-apache
COPY --from=get-composer /usr/local/bin/composer /usr/local/bin/composerThere was a problem hiding this comment.
Ok, I'll try it and create a PR then
Description
I've seen that the project skeleton can't run on PHP-8.0 as reported here #44
Since I also have the need to run a new project on PHP-8.0 I've adjusted the composer packages and Dockerfile in order to run on that version.
Hope you find it usefull