DockerfileStage.Env(String, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Adds an ENV statement to set an environment variable.
public Aspire.Hosting.ApplicationModel.Docker.DockerfileStage Env(string name, string value);
member this.Env : string * string -> Aspire.Hosting.ApplicationModel.Docker.DockerfileStage
Public Function Env (name As String, value As String) As DockerfileStage
Parameters
- name
- String
The environment variable name.
- value
- String
The environment variable value.
Returns
The current stage.