Skip to content
Docs Try Aspire
Docs Try

env

Method
📦 Aspire.Hosting v13.3.0
interface DockerfileStage {
// ... omitted for brevity
env(
name: string,
value: string): DockerfileStage;
}

Signature

method env
Adds an ENV statement to a Dockerfile stage
env(
name: string,
value: string): DockerfileStage
name string
value string
DockerfileStage

Applies to

This method applies to the following types: