2024-12-05 12:28:04 +00:00
|
|
|
FROM mcr.microsoft.com/dotnet/sdk:9.0 AS build
|
2024-10-06 19:50:15 +00:00
|
|
|
WORKDIR /src
|
|
|
|
COPY . .
|
|
|
|
RUN dotnet publish "pages.csproj" -c Release -o /app/publish /p:UseAppHost=false
|
|
|
|
|
2024-12-05 12:28:04 +00:00
|
|
|
FROM mcr.microsoft.com/dotnet/aspnet:9.0
|
2024-10-06 19:50:15 +00:00
|
|
|
WORKDIR /app
|
|
|
|
COPY --from=build /app/publish .
|
|
|
|
|
|
|
|
ENV ASPNETCORE_HTTP_PORTS=80
|
|
|
|
|
|
|
|
EXPOSE 80
|
|
|
|
ENTRYPOINT ["dotnet", "pages.dll"]
|