After I resolved this issue, I am facing an issue where PDF report has different layout than the one which rendered from local.
Please find below snapshot where you will see difference:
Below is the commands inside Dockerfile:
# app image FROM mcr.microsoft.com/dotnet/framework/runtime:4.8-windowsservercore-ltsc2019 AS BASE COPY arial*.ttf c:/windows/fonts/ COPY . . ENTRYPOINT BackgroundService.exe