-
Notifications
You must be signed in to change notification settings - Fork 20
Description
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!