更新了基础镜像版本,从 `mcr.microsoft.com/dotnet/aspnet:8.0` 升级到 `mcr.microsoft.com/dotnet/aspnet:9.0`。
在 Dockerfile 中添加了中文注释,解释了各个阶段的用途。
将 `EXPOSE` 端口从 `8081` 移除。
在 `build` 阶段中,更新了 .NET SDK 版本,从 `mcr.microsoft.com/dotnet/sdk:8.0` 升级到 `mcr.microsoft.com/dotnet/sdk:9.0`。
调整了项目文件的复制顺序,重新添加了一些项目文件的复制命令。
更新了 `dotnet restore` 和 `dotnet build` 命令的路径。
在 `launchSettings.json` 中添加了新的启动配置 `Container (.NET SDK)`,用于容器调试。
在 `Thor.Service.csproj` 中添加了 `RuntimeIdentifiers`、`EnableSdkContainerDebugging` 和 `ContainerBaseImage` 属性,以支持容器调试。
移除了 `Thor.Service.csproj` 中的 `.dockerignore` 文件的内容项。