From fa6bf4311479afb98a98edcf44b92eb6f79b8796 Mon Sep 17 00:00:00 2001 From: sudipnext Date: Wed, 22 Apr 2026 16:28:57 +0545 Subject: [PATCH] chore: update Dockerfile to install sharp dependency and initialize npm in presentation-export directory --- Dockerfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 01dd7a5e..156ce48f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -54,8 +54,12 @@ RUN mkdir -p /app/document-extraction-liteparse \ COPY electron/resources/document-extraction/liteparse_runner.mjs /app/document-extraction-liteparse/liteparse_runner.mjs COPY scripts/sync-presentation-export.cjs /app/scripts/sync-presentation-export.cjs +# Bundled export still loads @img/sharp-* native addons from node_modules (not inlined). RUN node /app/scripts/sync-presentation-export.cjs --force \ - && chmod +x /app/presentation-export/py/convert-linux-x64 + && chmod +x /app/presentation-export/py/convert-linux-x64 \ + && cd /app/presentation-export \ + && npm init -y \ + && npm install "sharp@^0.34.5" --include=optional --omit=dev --no-fund --no-audit --no-package-lock FROM python:3.11-slim-trixie AS runtime