Add project files.

This commit is contained in:
2026-07-14 09:25:59 +02:00
parent c8dcbf42d4
commit 8c64e0447f
8 changed files with 163 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
FROM mcr.microsoft.com/dotnet/sdk:10.0-bookworm-slim AS build
WORKDIR /src
COPY ["LiteCharmsMessaging/LiteCharmsMessaging.csproj", "LiteCharmsMessaging/"]
RUN dotnet restore "LiteCharmsMessaging/LiteCharmsMessaging.csproj"
COPY . .
WORKDIR "/src/LiteCharmsMessaging"
RUN dotnet build "LiteCharmsMessaging.csproj" -c Release -o /app/build
RUN dotnet publish "LiteCharmsMessaging.csproj" -c Release -o /app/publish /p:UseAppHost=false
FROM mcr.microsoft.com/dotnet/aspnet:10.0-bookworm-slim AS final
WORKDIR /app
COPY --from=build /app/publish .
EXPOSE 8080
ENTRYPOINT ["dotnet", "LiteCharmsMessaging.dll"]