Skip to content
DocsTry Aspire
DocsTry

env

Method
📦 Aspire.Hosting v13.4.0
interface DockerfileStage {
// ... omitted for brevity
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

Applies to

This method applies to the following types: