diff --git a/AS1024.GeoFeed.MinimalAPI/Dockerfile b/AS1024.GeoFeed.MinimalAPI/Dockerfile index 7e89049..f623f11 100644 --- a/AS1024.GeoFeed.MinimalAPI/Dockerfile +++ b/AS1024.GeoFeed.MinimalAPI/Dockerfile @@ -1,11 +1,11 @@ #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/runtime:8.0-jammy-chiseled AS base USER app WORKDIR /app EXPOSE 8080 -FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build +FROM mcr.microsoft.com/dotnet/sdk:8.0-jammy AS build # Install clang/zlib1g-dev dependencies for publishing to native RUN apt-get update \ && apt-get install -y --no-install-recommends \ @@ -22,7 +22,7 @@ FROM build AS publish ARG BUILD_CONFIGURATION=Release RUN dotnet publish "./AS1024.GeoFeed.MinimalAPI.csproj" -c $BUILD_CONFIGURATION -o /app/publish /p:UseAppHost=true /p:DebugType=None /p:DebugSymbols=false -FROM mcr.microsoft.com/dotnet/runtime-deps:8.0 AS final +FROM base AS final WORKDIR /app EXPOSE 8080 COPY --from=publish /app/publish .