How to configure PDF Invoice Generator on Linux (Docker) Do you use Linux? # Base image with ASP.NET Core 9 runtime # Install wkhtmltox system dependencies for PDF Invoice plugin # Set working directory inside container # Copy nopCommerce published files # Expose port used by nopCommerce # Start nopCommerce
You should install libraries.
Dockerfile file for Debian
FROM mcr.microsoft.com/dotnet/aspnet:9.0
RUN apt-get update && apt-get install -y \
libx11-6 \
libfontconfig1 \
libxrender1 \
libxext6 \
libfreetype6 \
libssl3 \
zlib1g \
libjpeg62-turbo \
libpng16-16 \
ca-certificates \
fonts-liberation \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY . /app
EXPOSE 8080
ENTRYPOINT ["dotnet", "Nop.Web.dll"]
Please note that some LInux could use libjpeg-turbo8 insteaf of libjpeg62-turbo