Base solution for your next web application
Open Closed

Cannot upload application logo after deployed to docker #10576


User avatar
0
dzungle created

Hello Support team,

We are using ANZ version 10.4 (ASP.NET CORE & Angular). We use the default theme and disable multitennant. Everything works fine in development invironment. But after we deployed the app (separate solutions for asp.net core & angular) to Docker. We face the UI issue. We cannot upload Application logo. The error we got is below:

Could you please help us solve this issue?

Best Regards


1 Answer(s)
  • User Avatar
    0
    gterdem created
    Support Team

    Share the backend logs please.

    It is probably related with libgdiplus which is not a part of .net core runtime docker image. Just add it inside docker build process:

    FROM base AS final
    WORKDIR /app
    COPY --from=publish /app .
    
    RUN apt-get update && apt-get install -y apt-utils libgdiplus libc6-dev
    
    ENTRYPOINT ["dotnet", "MyApplication.dll"]
    

    Or you can check related asked question in stackoverflow: https://stackoverflow.com/questions/55889999/using-system-drawing-inside-docker

    Also related issues: https://github.com/dotnet/runtime/issues/38702 https://github.com/dotnet/dotnet-docker/issues/618