I ran this image on a local docker, and it worked fine: https://hub.docker.com/r/trafex/php-nginx
Running it unmodified in fly gave some errors the seem to be related to permissions when supervisord is starting up nginx and php-fpm:
2022-05-28T14:51:39Z app[2013add4] lhr [info]Preparing to run: `/usr/bin/supervisord -c /etc/supervisor/conf.d/supervisord.conf` as nobody
2022-05-28T14:51:39Z app[2013add4] lhr [info]2022/05/28 14:51:39 listening on [fdaa:0:6561:a7b:aa9c:2013:add4:2]:22 (DNS: [fdaa::3]:53)
2022-05-28T14:51:40Z app[2013add4] lhr [info]2022-05-28 14:51:40,320 INFO supervisord started with pid 515
2022-05-28T14:51:41Z app[2013add4] lhr [info]2022-05-28 14:51:41,322 INFO spawnerr: unknown error making dispatchers for 'nginx': EACCES
2022-05-28T14:51:41Z app[2013add4] lhr [info]2022-05-28 14:51:41,322 INFO spawnerr: unknown error making dispatchers for 'php-fpm': EACCES
The Dockerfile had USER nobody
and removing this and fixing things up made it run in fly.
How can I understand what the differences between docker and fly are here?