I have working Dockerfile content
FROM mcr.microsoft.com/dotnet/core/sdk:3.1 as build WORKDIR /app # copy csproj and restore as distinct lay