Skip to content

Commit 464e93a

Browse files
committed
clarified dotnet restore purpose in dockerfile
1 parent 8db0ed9 commit 464e93a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

content/en/ninja-workshops/8-docker-k8s-otel/5-dockerize-app.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,10 @@ The next stage of the Dockerfile is the build stage. For this stage, the
115115
`mcr.microsoft.com/dotnet/sdk:8.0` image is used, which is also based off of
116116
Debian 12 but includes the full [.NET SDK](https://github.com/dotnet/dotnet-docker/blob/main/README.sdk.md) rather than just the runtime.
117117

118-
This stage copies the application code to the build image and then
118+
This stage copies the `.csproj` file to the build image, and then uses `dotnet restore` to
119+
download any dependencies used by the application.
120+
121+
It then copies the application code to the build image and
119122
uses `dotnet build` to build the project and its dependencies into a
120123
set of `.dll` binaries:
121124

0 commit comments

Comments
 (0)