telerik reporting .net 5.0 docker support

1 Answer 50 Views
.NET 5 .NET Core Rendering
Top achievements
Rank 1
Robert asked on 07 Jun 2021, 01:49 PM

I upgraded from .net  3.1 to .net 5.0 ..

When i start program locally everything works (rendering etc, i have result and base64 string of pdf)  but inside docker it is not working ..

Do you have any ideas ? I pasted dockerfile

#FROM  AS build
FROM  AS build
ARG APP_ENV=omtest1

#app run environment


COPY test/*.csproj test/
COPY telerik/*.csproj telerik/
#COPY WorkerService3/*.csproj WorkerService3/
RUN dotnet restore  test/test.csproj

# copy and build app and libraries
COPY  test/  test/
COPY  telerik/ telerik/
#COPY  WorkerService3/ WorkerService3/

WORKDIR /src/test
RUN dotnet build -c release

#app ports to be exposed

FROM build AS publish
RUN dotnet publish -r linux-x64 -o /app/publish

# final stage/image
FROM centos:7.5.1804
RUN 		yum install wget -y && \
	yum install -y epel-release && \
	rpm -Uvh && \	
	yum install glibc-devel -y && \
        yum install -y libgdiplus-2.10-10.el7.x86_64 && \
        yum install libX11-devel -y && \
	yum install dotnet-sdk-5.0 -y && \	
        rm -rf /var/cache/yum 
WORKDIR /app/telerik
COPY --from=publish /app/publish .

RUN cd /app/telerik &&  \
    cp te36013t_0.ttf TeleNeo-Regular.otf TeleNeo-Bold.otf TeleGroteskNor_0.ttf te36016t_0.ttf ConnectCode39_0.ttf /usr/share/fonts/
CMD dotnet test.dll --environment development

1 Answer, 1 is accepted

Sort by
Plamen Mitrev
Telerik team
answered on 08 Jun 2021, 01:02 PM

Hello Robert,

Thank you for contacting us with this question about Telerik Reporting in a Docker image and I will happily answer it and share more details.

Telerik Reporting can be used in a Docker image, as long as it meets the GDI+ requirements. Please make sure that the libgdiplus library is installed properly, as described in Containerize Telerik Reporting section. That should resolve the issue you encountered.

Test the above suggestions on your end and let me know if you need further assistance, or encounter any troubles.

Plamen Mitrev
Progress Telerik

Brand new Telerik Reporting course in Virtual Classroom - the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products. Check it out at
Top achievements
Rank 1
commented on 08 Jun 2021, 01:12 PM

Hi Plamen !
tnx for you quick answer...

libgdiplus is installed..
when i change sdk from 3.1 --> 5.0 rendering does not working..

please check the dockerfile i attached
Plamen Mitrev
Telerik team
commented on 09 Jun 2021, 01:13 PM

Hi Robert, I see that you have opened a support ticket as well. We discussed it with my colleague and she already replied there. Since this issue will require some additional information and logs, we can continue this discussion in the support ticket. 

Thank you for your cooperation and understanding.

.NET 5 .NET Core Rendering
Asked by
Top achievements
Rank 1
Answers by
Plamen Mitrev
Telerik team
Share this question