DockerfileStage.Expose(Int32) 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 EXPOSE statement to expose a port.
public Aspire.Hosting.ApplicationModel.Docker.DockerfileStage Expose(int port);
member this.Expose : int -> Aspire.Hosting.ApplicationModel.Docker.DockerfileStage
Public Function Expose (port As Integer) As DockerfileStage
Parameters
- port
- Int32
The port number to expose.
Returns
The current stage.