Tini zombie process with deno dockerfile

I am trying to get a deno application running with a dockerfile. I am able to get it working on my local machine; however, I am having trouble deploying it. I have these logs appearing whenever I try to deploy.

Zombie processes will not be re-parented to Tini, so zombie reaping won't work.

2022-06-04T07:05:16.959 app[f8952097] sjc [info] To fix the problem, use the -s option or set the environment variable TINI_SUBREAPER to register Tini as a child subreaper, or run Tini as PID 1.

I’m not sure where I am going wrong. Do I need to do something in the dockerfile to get Tini running as PID 1? Thank you for any help.

Tini cannot assume pid 1 on Fly. Run Deno as-is. On process kills, Fly init should recreate VM and start a new process therein, automatically (ref).

One can setup health-checks (local, remote, custom) to ensure a process is serving tcp/udp as expected.

That is correct.

Our init handles all the same things tini handles (reaping zombies) and much more.

The recommended way to run your app on Fly is to run your program directly.

1 Like