Skip to content

Commit 52ebf73

Browse files
Merge pull request #6 from FromDoppler/DD-396-fix-wkhtmltoimage-not-work-in-centos-docker-host
Fix wkhtmltoimage not work in docker centos host
2 parents fe76e39 + 692ee96 commit 52ebf73

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ FROM build AS publish
3333
RUN dotnet publish "./ConversionTool/ConversionTool.csproj" -c Release -o /app/publish
3434

3535
FROM mcr.microsoft.com/dotnet/aspnet:5.0-buster-slim AS final
36-
RUN apt-get update && apt-get install wkhtmltopdf -y && rm -rf /var/lib/apt/lists/*
36+
RUN apt-get update && apt-get install wkhtmltopdf binutils -y && rm -rf /var/lib/apt/lists/*
37+
RUN strip --remove-section=.note.ABI-tag /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
3738
WORKDIR /app
3839
EXPOSE 80
3940
COPY --from=publish /app/publish .

0 commit comments

Comments
 (0)