Hi Team,
i am trying to convert a word document to pdf and its working fine in my local windows machine. I have also installed SkiaSharp.NativeAssets.Linux version 1.68.1.1. and all my images are of type png or bmp. But in LINUX Docker container all my images are missing and here is my dockerfile that i am using
FROM mcr.microsoft.com/dotnet/core/runtime:2.1-stretch-slim AS base
WORKDIR /app
FROM mcr.microsoft.com/dotnet/core/sdk:2.1-stretch AS build
WORKDIR /src
COPY ["./.", "PdfPOC/"]
RUN dotnet restore "PdfPOC/PdfPOC.csproj"
COPY . .
WORKDIR "/src/PdfPOC"
RUN dotnet build "PdfPOC.csproj" -c Release -o /app/build
FROM build AS publish
RUN dotnet publish "PdfPOC.csproj" -c Release -o /app/publish
FROM base AS final
WORKDIR /app
COPY --from=publish /app/publish .
#RUN apt-get install -y ttf-mscorefonts-installer
RUN apt-get update && apt-get install -y apt-utils libgdiplus libc6-dev
RUN apt-get install -y libfreetype6
RUN apt-get install -y libfontconfig1
ENTRYPOINT ["dotnet", "PdfPOC.dll"]
UPDATE: Issue is Fixed by Installing the Nuget Package SkiaSharp.NativeAssets.Linux.NoDependencies