diff --git a/Dockerfile b/Dockerfile index 6ed6f1d..f26ed4e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,7 +10,7 @@ WORKDIR /src COPY ./*.sh ./ RUN shellcheck -e SC1091,SC1090 ./*.sh -FROM mcr.microsoft.com/dotnet/sdk:8.0 AS restore +FROM mcr.microsoft.com/dotnet/sdk:9.0 AS restore WORKDIR /src COPY ./*.sln ./ COPY */*.csproj ./ @@ -29,7 +29,7 @@ RUN dotnet test FROM build AS publish RUN dotnet publish "./doppler-beplic/doppler-beplic.csproj" -c Release -o /app/publish -FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS final +FROM mcr.microsoft.com/dotnet/aspnet:9.0 AS final WORKDIR /app EXPOSE 80 COPY --from=publish /app/publish . diff --git a/doppler-beplic/Dockerfile b/doppler-beplic/Dockerfile index 1f4754b..cf3fb78 100644 --- a/doppler-beplic/Dockerfile +++ b/doppler-beplic/Dockerfile @@ -1,11 +1,11 @@ #See https://aka.ms/containerfastmode to understand 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 WORKDIR /app EXPOSE 80 EXPOSE 443 -FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build +FROM mcr.microsoft.com/dotnet/sdk:9.0 AS build WORKDIR /src COPY ["doppler-beplic/doppler-beplic.csproj", "doppler-beplic/"] RUN dotnet restore "doppler-beplic/doppler-beplic.csproj"