Initial commit carried over from private repo. This is V2.
All checks were successful
Build and Push Docker Image / build (push) Successful in 1m3s
Build and Push Docker Image / docker (push) Successful in 43s

This commit is contained in:
2025-07-04 21:24:12 +02:00
parent 7715816029
commit 4393977389
96 changed files with 3223 additions and 0 deletions

24
Dockerfile Normal file
View File

@ -0,0 +1,24 @@
# Base image
FROM mcr.microsoft.com/dotnet/aspnet:9.0 AS base
WORKDIR /app
EXPOSE 80
FROM mcr.microsoft.com/dotnet/sdk:9.0 AS build
WORKDIR /src
# Copy and restore with custom config
COPY NuGet.config ./
COPY Directory.Packages.props ./
COPY code/ ./code/
WORKDIR /src/code/MessengerApi
RUN dotnet restore MessengerApi.csproj
# Build and publish
RUN dotnet publish MessengerApi.csproj -c Release -o /app/publish
FROM base AS final
WORKDIR /app
COPY --from=build /app/publish .
ENTRYPOINT ["dotnet", "MessengerApi.dll"]