How to run an 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 AS base

FROM AS build
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
COPY --from=publish /app .
ENTRYPOINT ["dotnet", "Internacional.dll"]

Whats wrong with my setup?

Source: StackOverflow