Hacker News new | ask | show | jobs
by diath 243 days ago
> (unless you like using an env in your container that is).

What's the problem with that?

You just make your script's entry point be something like this:

    uv venv --clear
    uv sync
    uv run main.py
1 comments

Doesn’t this mean pid 0 in the container is uv instead of python? Does uv run just spawn a child python process?
> Does uv run just spawn a child python process?

Yes, I suppose you could use it in conjunction with something like https://github.com/krallin/tini.