Empty admin project

This commit is contained in:
Khwezi Mngoma
2026-05-16 01:22:17 +02:00
parent ee3dc075ef
commit 0cc5b8935d
30 changed files with 1383 additions and 2 deletions
+20
View File
@@ -0,0 +1,20 @@
# Stage 1: Build
FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build
WORKDIR /app
COPY ["nuget.config", "./"]
COPY ["ShopAdmin/ShopAdmin.csproj", "Shop/"]
RUN dotnet restore "ShopAdmin/ShopAdmin.csproj" --configfile nuget.config
COPY . .
RUN dotnet publish "ShopAdmin/ShopAdmin.csproj" -c Release -o /app/publish /p:UseAppHost=false
# Stage 2: Final Image
FROM mcr.microsoft.com/dotnet/aspnet:10.0 AS final
WORKDIR /app
EXPOSE 8080
EXPOSE 8081
COPY --from=build /app/publish .
ENTRYPOINT ["dotnet", "ShopAdmin.dll"]