DockerBuildContext Class
Defines a Docker build context.
Class DockerBuildContext constructor.
- Inheritance
-
azureml._base_sdk_common.abstract_run_config_element._AbstractRunConfigElementDockerBuildContext
Constructor
DockerBuildContext(location_type=None, location=None, dockerfile_path='Dockerfile')
Parameters
- location_type
default value: None
- location
default value: None
- dockerfile_path
default value: Dockerfile
Variables
- azureml.core.environment.DockerBuildContext.location_type
Type of Docker build context location
- azureml.core.environment.DockerBuildContext.location
Docker build context location.
- dockerfile_path
- str
Path of the Dockerfile relative to the root of the build context, defaults to Dockerfile.
Methods
from_local_directory |
Create DockerBuildContext object from a local directory containing a Docker build context. |
from_local_directory
Create DockerBuildContext object from a local directory containing a Docker build context.
static from_local_directory(workspace, path, dockerfile_path='Dockerfile')
Parameters
- dockerfile_path
- str
default value: Dockerfile
Dockerfile path relative to the root of the Docker build context, defaults to Dockerfile.
Returns
The DockerBuildContext object.
Return type
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for