I hate to copy the same Dockerfile all over my projects. Also creating production-optimized Dockerfile is hard.
So I created a plugin. No config in the pyproject.toml needed for most of the use cases.
>poetry self add poetry-dockerize-plugin
>poetry dockerize