Merge pull request #1239 from MyMirelHub/fix/dotnet-version-bump-docker

Update Dockerfile to use .NET SDK and runtime version 8.0
This commit is contained in:
Alice Gibbons 2025-08-29 10:52:38 +01:00 committed by GitHub
commit 6d7cb06be5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
# Use the official .NET 7 SDK image to build the application
FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:7.0 AS build
FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:8.0 AS build
WORKDIR /app
# Copy the project file and restore dependencies
@ -12,7 +12,7 @@ COPY . ./
RUN dotnet publish -c Release -o out
# Use the official .NET 7 runtime image to run the application
FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/aspnet:7.0 AS runtime
FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/aspnet:8.0 AS runtime
WORKDIR /app
COPY --from=build /app/out .