Basic project setup
continuous-integration/drone/pr Build is passing

This commit is contained in:
Khwezi Mngoma
2026-05-23 10:55:03 +02:00
parent 20bb22911f
commit 4747b27f83
17 changed files with 690 additions and 234 deletions
+18
View File
@@ -0,0 +1,18 @@
FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build
WORKDIR /app
COPY ["nuget.config", "./"]
COPY ["MidrandBookshop/MidrandBookshop.csproj", "MidrandBookshop/"]
RUN dotnet restore "MidrandBookshop/MidrandBookshop.csproj" --configfile nuget.config
COPY . .
RUN dotnet publish "MidrandBookshop/MidrandBookshop.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", "MidrandBookshop.dll"]