Files
BirthList/src/BirthList.Web/Dockerfile
T
Arne Moerman 0878405e9d
Build and Push Docker Image / build-and-push (push) Failing after 10s
Initial Blazor birth registry app, theming, and services
Implemented a Blazor Web App (.NET 8) for a public-by-link birth registry platform, following project guidelines. Added domain entities, EF Core context, and Blazor components for authentication, registry management, and public views. Introduced core services for registries, theming, user context, platform owner bootstrapping, and SMTP email. Included static assets (Bootstrap, favicon), launch settings, Dockerfile, CI workflow, and deployment configs. Added bootstrap.min.css.map for improved CSS debugging.
2026-05-14 11:48:15 +02:00

20 lines
721 B
Docker

FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base
WORKDIR /app
EXPOSE 8080
ENV ASPNETCORE_URLS=http://+:8080
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
WORKDIR /src
COPY ["src/BirthList.Web/BirthList.Web.csproj", "src/BirthList.Web/"]
COPY ["src/BirthList.Infrastructure/BirthList.Infrastructure.csproj", "src/BirthList.Infrastructure/"]
COPY ["src/BirthList.Domain/BirthList.Domain.csproj", "src/BirthList.Domain/"]
RUN dotnet restore "src/BirthList.Web/BirthList.Web.csproj"
COPY . .
WORKDIR "/src/src/BirthList.Web"
RUN dotnet publish "BirthList.Web.csproj" -c Release -o /app/publish /p:UseAppHost=false
FROM base AS final
WORKDIR /app
COPY --from=build /app/publish .
ENTRYPOINT ["dotnet", "BirthList.Web.dll"]