Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

Env

Method
📦 Aspire.Hosting v17.0.0
func (DockerfileStage) Env(
name string,
value string,
) DockerfileStage

Signature

methodEnv
Adds an ENV statement to a Dockerfile stage
Env(
name string,
value string,
) DockerfileStage
namestring
valuestring
DockerfileStage

Returns a handle; failures surface later via Err().

Applies to

This method applies to the following types: