You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/guides/dotnet/develop.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -288,11 +288,11 @@ immediately reflected in the running container.
288
288
Open `docker-dotnet-sample/src/Pages/Index.cshtml` in an IDE or text editor and update the student name text on line 13 from `Student name is` to `Student name:`.
289
289
290
290
```diff
291
-
- <p>Student Name is @Model.StudentName</p>
291
+
- <p>Student name is @Model.StudentName</p>
292
292
+ <p>Student name: @Model.StudentName</p>
293
293
```
294
294
295
-
Save the changes to `Index.cshmtl` and then wait a few seconds for the application to rebuild. Refresh [http://localhost:8080](http://localhost:8080) in your browser and verify that the updated text appears.
295
+
Save the changes to `Index.cshtml` and then wait a few seconds for the application to rebuild. Refresh [http://localhost:8080](http://localhost:8080) in your browser and verify that the updated text appears.
296
296
297
297
Press `ctrl+c` in the terminal to stop your application.
298
298
@@ -307,19 +307,19 @@ The following is the updated Dockerfile.
307
307
```Dockerfile {hl_lines="10-13"}
308
308
# syntax=docker/dockerfile:1
309
309
310
-
FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:8.0-alpine AS build
310
+
FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:10.0-alpine AS build
311
311
ARG TARGETARCH
312
312
COPY . /source
313
313
WORKDIR /source/src
314
314
RUN --mount=type=cache,id=nuget,target=/root/.nuget/packages \
315
315
dotnet publish -a ${TARGETARCH/amd64/x64} --use-current-runtime --self-contained false -o /app
316
316
317
-
FROM mcr.microsoft.com/dotnet/sdk:8.0-alpine AS development
317
+
FROM mcr.microsoft.com/dotnet/sdk:10.0-alpine AS development
318
318
COPY . /source
319
319
WORKDIR /source/src
320
320
CMD dotnet run --no-launch-profile
321
321
322
-
FROM mcr.microsoft.com/dotnet/aspnet:8.0-alpine AS final
322
+
FROM mcr.microsoft.com/dotnet/aspnet:10.0-alpine AS final
323
323
WORKDIR /app
324
324
COPY --from=build /app .
325
325
ARG UID=10001
@@ -379,7 +379,7 @@ secrets:
379
379
file: db/password.txt
380
380
```
381
381
382
-
Your containerized application will now use the `mcr.microsoft.com/dotnet/sdk:8.0-alpine` image, which includes development tools like `dotnet test`. Continue to the next section to learn how you can run `dotnet test`.
382
+
Your containerized application will now use the `mcr.microsoft.com/dotnet/sdk:10.0-alpine` image, which includes development tools like `dotnet test`. Continue to the next section to learn how you can run `dotnet test`.
0 commit comments