Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WorkDir

Method
📦 Aspire.Hosting v17.0.0
func (DockerfileStage) WorkDir(path string) DockerfileStage

Signature

methodWorkDir
Adds a WORKDIR statement to a Dockerfile stage
WorkDir(path string) DockerfileStage
pathstring
DockerfileStage

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

Applies to

This method applies to the following types: