Skip to content

Commit f26ecb3

Browse files
Publish .NET app some rewording (#42760)
* Publish .NET app some rewording * Apply suggestions from code review --------- Co-authored-by: David Pine <[email protected]>
1 parent 0f2ea15 commit f26ecb3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

docs/core/docker/build-container.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ If you pass a number on the command line to the app, it will only count up to th
126126
127127
## Publish .NET app
128128

129-
Before adding the .NET app to the Docker image, first it must be published. It's best to have the container run the published version of the app. To publish the app, run the following command:
129+
In order for the app to be suitable for an image creation it has to be built. The `dotnet publish` command is most apt for this, as it builds and publishes the app. For an in-depth reference, see [dotnet build](/dotnet/core/tools/dotnet-build) and [dotnet publish](/dotnet/core/tools/dotnet-publish) commands documentation.
130130

131131
```dotnetcli
132132
dotnet publish -c Release
@@ -141,6 +141,9 @@ This command compiles your app to the *publish* folder. The path to the *publish
141141

142142
This command compiles your app to the *publish* folder. The path to the *publish* folder from the working folder should be `.\App\bin\Release\net7.0\publish\`.
143143

144+
> [!NOTE]
145+
> Application publishing is needed for image creation but this is rather orchestrated by the _Dockerfile_. See [Create the Dockerfile](#create-the-dockerfile).
146+
144147
:::zone-end
145148

146149
#### [Windows](#tab/windows)

0 commit comments

Comments
 (0)