I am creating this as an issue/enhancement as I did not see an option for this elsewhere. It would be nice to have a possibility to set environment variables during the image building and/or reference an env file. Talking about this build function here: https://podman-py.readthedocs.io/en/latest/podman.domain.images_manager.html#podman.domain.images_manager.ImagesManager.build
Afaik podman itself provides the option to set envs in the image build process while podman python only allows buildargs which are not getting passed to the image itself.
Thanks!