From 148cdc5c05e9f062880ce84a49ed43a855b39e6c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 12 Nov 2025 03:08:55 +0000 Subject: [PATCH] Bump dotnet/sdk from 8.0 to 10.0 Bumps dotnet/sdk from 8.0 to 10.0. --- updated-dependencies: - dependency-name: dotnet/sdk dependency-version: '10.0' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- Dockerfile | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/Dockerfile b/Dockerfile index a91bcb1..88477ac 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,20 +1,20 @@ -# Use the .NET SDK image to build the project -FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build-env -WORKDIR /app - -# Copy csproj files and restore as distinct layers -COPY src/GolfClapBot.Runner/*.csproj ./src/GolfClapBot.Runner/ -COPY src/GolfClapBot.Bot/*.csproj ./src/GolfClapBot.Bot/ -COPY src/GolfClapBot.Domain/*.csproj ./src/GolfClapBot.Domain/ -RUN dotnet restore src/GolfClapBot.Runner/GolfClapBot.Runner.csproj - -# Copy everything else and build -COPY src/ ./src/ -WORKDIR /app/src/GolfClapBot.Runner -RUN dotnet build -c Release -o out - -# Stage 2: Run the application -FROM mcr.microsoft.com/dotnet/aspnet:8.0 -WORKDIR /app -COPY --from=build-env /app/src/GolfClapBot.Runner/out . -ENTRYPOINT ["dotnet", "GolfClapBot.Runner.dll"] +# Use the .NET SDK image to build the project +FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build-env +WORKDIR /app + +# Copy csproj files and restore as distinct layers +COPY src/GolfClapBot.Runner/*.csproj ./src/GolfClapBot.Runner/ +COPY src/GolfClapBot.Bot/*.csproj ./src/GolfClapBot.Bot/ +COPY src/GolfClapBot.Domain/*.csproj ./src/GolfClapBot.Domain/ +RUN dotnet restore src/GolfClapBot.Runner/GolfClapBot.Runner.csproj + +# Copy everything else and build +COPY src/ ./src/ +WORKDIR /app/src/GolfClapBot.Runner +RUN dotnet build -c Release -o out + +# Stage 2: Run the application +FROM mcr.microsoft.com/dotnet/aspnet:8.0 +WORKDIR /app +COPY --from=build-env /app/src/GolfClapBot.Runner/out . +ENTRYPOINT ["dotnet", "GolfClapBot.Runner.dll"]