PHP runtime for AWS Lambda. Based on akrabat/lambda-php.
-
Create the runtime docker file:
$ docker build -t lambda-php-runtime .
Update
Dockerfile
if you want different extensions. -
Upload to Amazon using img2lambda:
$ img2lambda -i lambda-php-runtime:latest -r eu-central-1 -n lambda-php73
(Change the region if you aren't deploying to eu-central-1).
The layer's ARN is now in
output/layers.json
, put it in ENV variable and reference it in your appsserverless.yml
.