I want to deploy my code on Docker over Lambda. I obtained this file from the documentation regarding PHP-FPM, but I want to use Octane as a handler. I have made some changes in my Dockerfile, replacing the public/index.php with the Octane handler. After deploying to Lambda, I am encountering this error:
I want to deploy my code on Docker over Lambda. I obtained this file from the documentation regarding PHP-FPM, but I want to use Octane as a handler. I have made some changes in my Dockerfile, replacing the public/index.php with the Octane handler. After deploying to Lambda, I am encountering this error:
FROM bref/php-81-fpm:2
COPY --from=bref/extra-redis-php-81:1 /opt /opt COPY --from=bref/extra-gmp-php-81:1 /opt /opt
COPY . /var/task
CMD ["public/index.php"]
FROM bref/php-82-fpm
COPY --from=bref/extra-redis-php-81:1 /opt /opt
COPY --from=bref/extra-gmp-php-81:1 /opt /opt
COPY . /var/task
CMD ["Bref\LaravelBridge\Http\OctaneHandler"]
INIT_REPORT Init Duration: 24.44 ms Phase: init Status: error Error Type: Runtime.ExitError
entrypoint requires the handler name to be the first argument