jail services in podman

From: JH Foo <jhfoo_at_kungfoo.info>
Date: Tue, 31 Dec 2024 16:16:23 UTC
Not sure if this is a jail or podman thing: I'm learning about running 
apps in Podman, and the recommendation seems to be to include a CMD in 
Containerfile/Dockerfile. When the binary called by the CMD ends, the 
jail is stopped. In the example 
(https://gitlab.com/bergblume/podman-caddy-on-freebsd/-/blob/master/caddy.yml?ref_type=heads), 
Caddy is run daemonless using this technique.

My question is: in the world of sidecars is this still the right way to 
execute long-running (e.g. API) services? I'm using Bastille now and I 
set up Caddy (for example) as a service in /etc/rc.conf. Is this 
considered anti-pattern in Podman/OCI containers?