Deploy a Laravel Zero app

Hi @tubiz awesome work on creating your Dockerfile!

In your app logs you might find an error like: “s6-overlay-suexec: fatal: can only run as pid 1”, if you do, this might be because you are using the base image FROM serversideup/php:8.1-cli. The latest version might be using [s6-overlay] (edit:v3)(GitHub - just-containers/s6-overlay: s6 overlay for containers (includes execline, s6-linux-utils & a custom init)).

As you can read from the error above,“s6-overlay” can only run as pid 1! However we can’t run other processes as pid1 in Fly.io, for more details, please check this doc and here out for that!

So to fix this, as announced here: 📣 [Laravel] Fix for error "Failed due to unhealthy allocations", kindly append a stable version to your base image that does not use the (edit:s6-v3)process:

FROM serversideup/php:8.1-cli-v1.5.0

Let me know how it goes!

2 Likes