diff --git a/Dockerfile b/Dockerfile index 215441b..4f349d2 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:6.0.407-bullseye-slim AS restore +FROM mcr.microsoft.com/dotnet/sdk:7.0.410-bullseye-slim AS restore WORKDIR /src COPY ./*.sln ./ COPY */*.csproj ./ @@ -29,7 +29,7 @@ RUN dotnet test FROM build AS publish RUN dotnet publish "./Doppler.Push.Api/Doppler.Push.Api.csproj" -c Release -o /app/publish -FROM mcr.microsoft.com/dotnet/aspnet:6.0.15-bullseye-slim AS final +FROM mcr.microsoft.com/dotnet/aspnet:7.0.20-bullseye-slim AS final WORKDIR /app EXPOSE 80 COPY --from=publish /app/publish . diff --git a/Doppler.Push.Api/Dockerfile b/Doppler.Push.Api/Dockerfile index 541cfb9..5fb3ff7 100644 --- a/Doppler.Push.Api/Dockerfile +++ b/Doppler.Push.Api/Dockerfile @@ -1,10 +1,10 @@ #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:7.0 AS base +FROM mcr.microsoft.com/dotnet/aspnet:10.0 AS base WORKDIR /app EXPOSE 80 -FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build +FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build WORKDIR /src COPY ["Doppler.Push.Api/Doppler.Push.Api.csproj", "Doppler.Push.Api/"] RUN dotnet restore "Doppler.Push.Api/Doppler.Push.Api.csproj"