Skip to content

Commit c4573c0

Browse files
author
Damien
committed
feat(docker): add document-processing runtime dependencies
Add fonts (Liberation, DejaVu) and qpdf to the existing apt-install layer to enable LibreOffice (already installed upstream) to render documents with proper font fallback, and to provide PDF post-processing. Add Python libs (pypdf, pdfplumber, markitdown[pptx]) and Node libs (docx, pptxgenjs) used by document-processing skills mounted at runtime via LibreChat's native Skills module. No new apt layer — consolidated into the existing block (line 49-56). No image bloat from libreoffice-core (transitive dependency of libreoffice-{writer,calc,impress}) or fonts-noto-core (not used by audited skills, which target Latin-script documents).
1 parent 16474a4 commit c4573c0

3 files changed

Lines changed: 7 additions & 0 deletions

File tree

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
5353
libpulse-dev libsdl2-dev libsdl2-mixer-dev libsdl2-image-dev libsdl2-ttf-dev \
5454
antiword unrtf \
5555
libreoffice-impress libreoffice-writer libreoffice-calc libreoffice-common \
56+
fonts-liberation fonts-dejavu-core \
57+
qpdf \
5658
&& rm -rf /var/lib/apt/lists/*
5759

5860
COPY docker/requirements/python-core.txt /tmp/python-core.txt

docker/requirements/nodejs.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,5 @@ zod
3333
handlebars
3434
cheerio
3535
marked
36+
docx
37+
pptxgenjs

docker/requirements/python-documents.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
# PDF
44
PyPDF2>=3.0
5+
pypdf>=4.0
6+
pdfplumber>=0.10
57
pdfminer.six>=20221105
68
pdfminer>=20191125
79
pdf2image>=1.16
@@ -10,6 +12,7 @@ reportlab>=4.0
1012
# Office documents
1113
python-docx>=1.1
1214
python-pptx>=0.6
15+
markitdown[pptx]>=0.1
1316
mammoth>=1.6
1417
docx2txt>=0.8
1518
docx2python>=2.0

0 commit comments

Comments
 (0)