Skip to content

Add option to set envs in BuildMixin.build function #570

@jabrcks

Description

@jabrcks

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions