You can use custom runtimes to add
additional functionality to a PHP app running in the App Engine flexible environment. To configure
a custom runtime, replace the following line in your
with this line:
You must also add a
Dockerfile in the same directory that contains the
For building PHP containers, Google provides this base image:
|Base Image||Health Checks|
Visit the Custom runtimes documentation to learn how to define a Dockerfile in a custom runtime.
By default, all programs running in the flexible environment receive
health check requests.
The base image
gcr.io/google_appengine/php responds to the health check
request, so you don't have to write your own health check handler. If you're
using a different image, you need to disable health checks, or write your own
code to handle health check requests.