Files
demo-contact/Dockerfile
Sufi Aziz 5e606cde31
All checks were successful
Build & Test / build (pull_request) Successful in 1m37s
chore: Upgraded all projects to .NET 10.
2026-02-03 16:52:59 +08:00

19 lines
399 B
Docker

FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build
WORKDIR /App
COPY . ./
RUN dotnet restore
RUN dotnet publish "ui/Sufi.Demo.PeopleDirectory.UI/Server/Sufi.Demo.PeopleDirectory.UI.Server.csproj" -c Release -o out
FROM mcr.microsoft.com/dotnet/aspnet:10.0-alpine AS runtime
WORKDIR /App
COPY --from=build /App/out ./
EXPOSE 8080
ENTRYPOINT ["dotnet", "Sufi.Demo.PeopleDirectory.UI.Server.dll"]