BuildContext Class

Docker build context for Environment.

Constructor

BuildContext(*, dockerfile_path: str | None = None, path: str | PathLike | None = None)

Keyword-Only Parameters

Name Description
path

The local or remote path to the the docker build context directory.

Default value: None
dockerfile_path
str

The path to the dockerfile relative to root of docker build context directory.

Default value: None

Examples

Create a Build Context object.


   from azure.ai.ml.entities._assets.environment import BuildContext

   build_context = BuildContext(dockerfile_path="docker-file-path", path="docker-build-context-path")