How to dockerize dotnet core angular template application?
问题 I created a web application using the dotnet cli angular template. dotnet new anguar Web Now I want to dockerize this application. I added the following Dockerfile to the project folder. FROM mcr.microsoft.com/dotnet/core/sdk:2.2 AS build-env WORKDIR /app # Copy csproj and restore as distinct layers COPY *.csproj ./ RUN dotnet restore # Copy everything else and build COPY . ./ RUN dotnet publish -c Release -o out # Build runtime image FROM mcr.microsoft.com/dotnet/core/aspnet:2.2 WORKDIR /app