Add project files.

This commit is contained in:
Khwezi Mngoma
2026-06-01 17:38:55 +02:00
commit abc7acbced
22 changed files with 1516 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build
WORKDIR /app
COPY ["nuget.config", "./"]
COPY ["MidrandBooksApi/MidrandBooksApi.csproj", "MidrandBooksApi/"]
RUN dotnet restore "MidrandBooksApi/MidrandBooksApi.csproj" --configfile nuget.config
COPY . .
RUN dotnet publish "MidrandBooksApi/MidrandBooksApi.csproj" -c Release -o /app/publish /p:UseAppHost=false
FROM mcr.microsoft.com/dotnet/aspnet:10.0 AS final
WORKDIR /app
EXPOSE 8080
EXPOSE 8081
COPY --from=build /app/publish .
ENTRYPOINT ["dotnet", "MidrandBooksApi.dll"]