Hey r/Python! I wanted to share a small proof-of-concept I created that lets you build Docker images directly from Python scripts with embedded Dockerfiles.
What My Project Does
docker-pybuild is a Docker CLI plugin inspired by PEP-723 (which allows you to specify Python version and dependencies in script metadata). It extends this concept to include a complete Dockerfile in your Python script's metadata.
Target Audience
It's pretty much just a proof-of-concept at this point, but I thought someone might find it handy.
Comparison
I'm not really aware of any similar projects, but I'd be happy to hear if someone knows of any alternatives.
