How to run an asp.net core application in docker container?

I’m completelly new to .Net Core and Docker.

I created a project in ASP.NET Core 2.2 and selected docker to run. My objective is to study about .Net Core and Docker.
In my test app I use Rotativa.AspNetCore.

The problem is:
– When I run the project using IIS Express, everything works.
– When I run using docker, the project stops when I call a function in Rotativa.AspNetCore.

The line throwing error is:

return new ViewAsPdf("views/relatorios/render.cshtml", vm);

It works when debuging with IIS Express, but fails using Docker.

I know that, in this moment, Rotativa.AspNetCore calls wkhtmltopdf.exe, maybe the problem is in this call.

Here is my dockerfile, It was automatically generated:

FROM mcr.microsoft.com/dotnet/core/aspnet:2.2-nanoserver-1803 AS base
WORKDIR /app
EXPOSE 80
EXPOSE 443

FROM mcr.microsoft.com/dotnet/core/sdk:2.2-nanoserver-1803 AS build
WORKDIR /src
COPY ["Internacional/Internacional.csproj", "Internacional/"]
RUN dotnet restore "Internacional/Internacional.csproj"
COPY . .
WORKDIR "/src/Internacional"
RUN dotnet build "Internacional.csproj" -c Release -o /app

FROM build AS publish
RUN dotnet publish "Internacional.csproj" -c Release -o /app

FROM base AS final
WORKDIR /app
COPY --from=publish /app .
ENTRYPOINT ["dotnet", "Internacional.dll"]

Whats wrong with my setup?

Source: StackOverflow