diff --git a/test/NetCorePal.Web/Dockerfile b/test/NetCorePal.Web/Dockerfile index 7f5febc..4bd3d2c 100644 --- a/test/NetCorePal.Web/Dockerfile +++ b/test/NetCorePal.Web/Dockerfile @@ -1,12 +1,12 @@ #See https://aka.ms/customizecontainer to learn how to customize your debug container and how Visual Studio uses this Dockerfile to build your images for faster debugging. -FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base +FROM mcr.microsoft.com/dotnet/aspnet:9.0 AS base USER app WORKDIR /app EXPOSE 8080 EXPOSE 8081 -FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build +FROM mcr.microsoft.com/dotnet/sdk:9.0 AS build WORKDIR /src COPY ["Directory.Build.props", "."] COPY ["NuGet.config", "."] @@ -14,10 +14,10 @@ COPY ["test/NetCorePal.Web/NetCorePal.Web.csproj", "test/NetCorePal.Web/"] RUN dotnet restore "test/NetCorePal.Web/NetCorePal.Web.csproj" COPY . . WORKDIR "/src/test/NetCorePal.Web" -RUN dotnet build "NetCorePal.Web.csproj" -c Release -f net8.0 -o /app/build +RUN dotnet build "NetCorePal.Web.csproj" -c Release -f net9.0 -o /app/build FROM build AS publish -RUN dotnet publish "NetCorePal.Web.csproj" -c Release -f net8.0 -o /app/publish /p:UseAppHost=false +RUN dotnet publish "NetCorePal.Web.csproj" -c Release -f net9.0 -o /app/publish /p:UseAppHost=false FROM base AS final WORKDIR /app