Skip to content

Commit 6d7cb06

Browse files
Merge pull request #1239 from MyMirelHub/fix/dotnet-version-bump-docker
Update Dockerfile to use .NET SDK and runtime version 8.0
2 parents 6375700 + 5e73a09 commit 6d7cb06

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tutorials/distributed-calculator/csharp/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Use the official .NET 7 SDK image to build the application
2-
FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:7.0 AS build
2+
FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:8.0 AS build
33
WORKDIR /app
44

55
# Copy the project file and restore dependencies
@@ -12,7 +12,7 @@ COPY . ./
1212
RUN dotnet publish -c Release -o out
1313

1414
# Use the official .NET 7 runtime image to run the application
15-
FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/aspnet:7.0 AS runtime
15+
FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/aspnet:8.0 AS runtime
1616
WORKDIR /app
1717
COPY --from=build /app/out .
1818

0 commit comments

Comments
 (0)