Skip to content

QPDF Installation on Docker #41

@chaimtevel

Description

@chaimtevel

Hi,

I was very excited to try out the new features outlined here.

Upgrading to the latest (as of now) nuget package did allow us to get these new features up and running easily on our local dev machines. However, once we deployed to our staging server which runs on docker, we did have issues with missing dependencies so I'm sharing what we did to get this working.

We used the following base image for the runtime (not the build) image.

FROM mcr.microsoft.com/dotnet/aspnet:8.0-noble AS base

We also needed to install the following packages on the runtime image, but we did not spend too much time seeing how to minimize what's being installed.

RUN apt-get update && apt-get install -y qpdf && \
    apt-get clean && \ 
    rm -rf /var/lib/apt/lists/*

The first line of this snippet installs the qpdf and its dependencies binaries in the image. The next two lines just cleanup the apt-get disk usage to minimize the image size.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions