Add frontend/minattest-app-host/Dockerfile

This commit is contained in:
2025-11-17 11:13:04 +00:00
parent 7e34a9ac83
commit 50bf96d672
+18
View File
@@ -0,0 +1,18 @@
# frontend/minattest-app-host/Dockerfile
FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base
WORKDIR /app
EXPOSE 8080
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
WORKDIR /src
COPY . .
RUN dotnet restore minattest-app-host.csproj
RUN dotnet publish minattest-app-host.csproj -c Release -o /app/publish /p:UseAppHost=false
FROM base AS final
WORKDIR /app
COPY --from=build /app/publish .
ENTRYPOINT ["dotnet", "minattest-app-host.dll"]