Unable to load shared library '/app/libwkhtmltox.so' or one of its dependencies. In order to help diagnose loading problems, #3091
Unanswered
sanjeev02saraswat
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to create container for one .net core api . we are using dinktopdf dll for html to pdf pages.it is working fine in iis express but getting error when creating image and container in linux env.
Below is my docker file content:
FROM mcr.microsoft.com/dotnet/aspnet:2.1 AS base
WORKDIR /app
EXPOSE 80
FROM mcr.microsoft.com/dotnet/sdk:2.1 AS build
WORKDIR /src
COPY ["ProcessAPI/ProcessAPI.csproj", "ProcessAPI/"]
RUN dotnet restore "ProcessAPI/ProcessAPI.csproj"
COPY . .
WORKDIR "/src/ProcessAPI"
RUN dotnet build "ProcessAPI.csproj" -c Release -o /app/build
FROM build AS publish
RUN dotnet publish "ProcessAPI.csproj" -p:PublishProfile=/Properties/PublishProfiles/FolderProfile.pubxml -c Release -o /app/publish
FROM base AS final
WORKDIR /app
COPY --from=publish /app/publish .
RUN apt-get update
RUN apt-get install wget libgdiplus -y
RUN wget -P /app https://github.com/rdvojmoc/DinkToPdf/raw/master/v0.12.4/64%20bit/libwkhtmltox.dll
RUN wget -P /app https://github.com/rdvojmoc/DinkToPdf/raw/master/v0.12.4/64%20bit/libwkhtmltox.dylib
RUN wget -P /app https://github.com/rdvojmoc/DinkToPdf/raw/master/v0.12.4/64%20bit/libwkhtmltox.so
ENTRYPOINT ["dotnet", "ProcessAPI.dll"]
I am working on this issue from last 2 days but no success. Please suggest how we can come out from this issue.
Beta Was this translation helpful? Give feedback.
All reactions