KEINOS / Dockerfile_of_PHP8-JIT

✅ Dockerfile of PHP8.0 with JIT Enabled in Alpine Image.
https://arkadiuszkondas.com/how-to-run-php-8-with-jit-support-using-docker/
9 stars 4 forks source link

Samples that uses Composer doesn't build #23

Closed KEINOS closed 3 years ago

KEINOS commented 3 years ago

As of Composer v2 release, many packages don't work on the fly. It's better to specify the composer version to use.

    # Install Composer
    echo '- Installing composer ...' && \
    EXPECTED_SIGNATURE="$(wget -q -O - https://composer.github.io/installer.sig)"; \
    php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"; \
    ACTUAL_SIGNATURE="$(php -r "echo hash_file('sha384', 'composer-setup.php');")"; \
    [ "$EXPECTED_SIGNATURE" != "$ACTUAL_SIGNATURE" ] && { >&2 echo 'ERROR: Invalid installer signature'; exit 1; }; \
-   php composer-setup.php --install-dir=/bin --filename=composer && \
+   php composer-setup.php --install-dir=/bin --version=1.10.17 --filename=composer && \