diff --git a/Dockerfile b/Dockerfile index 9f865ef..dbcb13d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,7 +10,7 @@ # https://github.com/dotnet/dotnet-docker/blob/main/samples/README.md # Create a stage for building the application. -FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:8.0-alpine AS build +FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:10.0-alpine AS build ARG TARGETARCH COPY . /source @@ -37,7 +37,7 @@ RUN --mount=type=cache,id=nuget,target=/root/.nuget/packages \ # build your Dockerfile. If reproducability is important, consider using a more specific # version (e.g., aspnet:7.0.10-alpine-3.18), # or SHA (e.g., mcr.microsoft.com/dotnet/aspnet@sha256:f3d99f54d504a21d38e4cc2f13ff47d67235efeeb85c109d3d1ff1808b38d034). -FROM mcr.microsoft.com/dotnet/aspnet:8.0-alpine AS final +FROM mcr.microsoft.com/dotnet/aspnet:10.0-alpine AS final WORKDIR /app # Copy everything needed to run the app from the "build" stage. diff --git a/compose.yaml b/compose.yaml index 52866af..30b47cd 100644 --- a/compose.yaml +++ b/compose.yaml @@ -13,7 +13,7 @@ services: context: . target: final ports: - - 8080:80 + - 8080:8080 # The commented out section below is an example of how to define a PostgreSQL # database that your application can use. `depends_on` tells Docker Compose to @@ -31,7 +31,7 @@ services: # secrets: # - db-password # volumes: -# - db-data:/var/lib/postgresql/data +# - db-data:/var/lib/postgresql # environment: # - POSTGRES_DB=example # - POSTGRES_PASSWORD_FILE=/run/secrets/db-password diff --git a/docker-dotnet-sample-review.sln b/docker-dotnet-sample-review.sln new file mode 100644 index 0000000..1aae7d8 --- /dev/null +++ b/docker-dotnet-sample-review.sln @@ -0,0 +1,30 @@ +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.5.2.0 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "tests", "tests\tests.csproj", "{9CF47860-2CEA-F379-09D8-9AEF27965D12}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "myWebApp", "src\myWebApp.csproj", "{5178F247-A964-BC1E-B351-1A14CDD2CCAE}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {9CF47860-2CEA-F379-09D8-9AEF27965D12}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {9CF47860-2CEA-F379-09D8-9AEF27965D12}.Debug|Any CPU.Build.0 = Debug|Any CPU + {9CF47860-2CEA-F379-09D8-9AEF27965D12}.Release|Any CPU.ActiveCfg = Release|Any CPU + {9CF47860-2CEA-F379-09D8-9AEF27965D12}.Release|Any CPU.Build.0 = Release|Any CPU + {5178F247-A964-BC1E-B351-1A14CDD2CCAE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {5178F247-A964-BC1E-B351-1A14CDD2CCAE}.Debug|Any CPU.Build.0 = Debug|Any CPU + {5178F247-A964-BC1E-B351-1A14CDD2CCAE}.Release|Any CPU.ActiveCfg = Release|Any CPU + {5178F247-A964-BC1E-B351-1A14CDD2CCAE}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {8EC1805A-D033-4FD6-AE52-9AB211C16676} + EndGlobalSection +EndGlobal diff --git a/src/myWebApp.csproj b/src/myWebApp.csproj index bb45cfd..a2a9fa5 100644 --- a/src/myWebApp.csproj +++ b/src/myWebApp.csproj @@ -1,10 +1,10 @@ - net8.0 + net10.0 enable enable - + \ No newline at end of file diff --git a/tests/tests.csproj b/tests/tests.csproj index 4052cc2..55ccbc5 100644 --- a/tests/tests.csproj +++ b/tests/tests.csproj @@ -1,14 +1,14 @@ - net8.0 + net10.0 enable enable false - + - + runtime; build; native; contentfiles; analyzers; buildtransitive all