Empty admin project
This commit is contained in:
+20
@@ -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"]
|
||||
Reference in New Issue
Block a user