mirror of
https://github.com/usetrmnl/trmnlp.git
synced 2026-08-13 14:27:33 -07:00
The serve command auto-binds to 0.0.0.0 inside containers so the dev server is reachable through published ports. Detection only checked for /.dockerenv, which Docker writes but Podman does not. Under Podman serve fell back to 127.0.0.1 and was unreachable from the host, as reported in issue #112. Detection now also checks for /run/.containerenv, which Podman writes, so the auto-bind works for both runtimes with no extra flags. Also dropped the bin/trmnlp wrapper change that appended --bind 0.0.0.0 to every command. The flag was added after "$@", so it landed on build, login, and init too, none of which accept --bind, and Thor errored. The container auto-detect makes the wrapper flag unnecessary.