Docling document conversion with its models, on PyTorch CUDA, for Swale tasks. Backs the docling tas
76
Swale-built image backing the docling task definition. It installs
Docling, which converts PDF,
Word, PowerPoint, Excel, HTML and image files into Markdown, JSON, HTML or
plain text, reading page layout, tables and reading order with its own models
and recognizing scanned text with OCR. The models are in the image, so a task
converts without downloading anything.
pytorch/pytorch, CUDA
13.0, cuDNN 9); its CUDA build of PyTorch also runs on a CPUrequirements.txt,
and the models it downloads by default in /opt/docling/models, which
DOCLING_ARTIFACTS_PATH namesswale (uid 1000)WORKDIR /mnt/workspace, no ENTRYPOINTThe image declares no entrypoint, so a task definition's exec.args are the
full command line: ["docling", "convert", "<source>", "--output", "<dir>", "--to", "md"].
Docling runs on the GPU when the compute type has one and on the CPU otherwise.
NOTICE.md
lists the models in the image, where each comes from and its license:
Apache-2.0, CDLA-Permissive-2.0 or MIT. The notice and the license texts ship
inside the image in /usr/share/licenses/docling-models.
Each tag is the version of Docling the image packages, such as 2.155.0. A
rebuild that keeps that version, to pick up a fixed base image or wrapper,
adds -r1, -r2, and so on. A tag is never reused; latest follows the
newest publish.
From the repository root:
docker build -t swaleio/docling:dev images/docling
Merging a change under images/docling publishes the image under its next tag;
task definitions reference it by digest.
Built from images/docling in the
swaleio/task-definitions repository. For how a task definition
references an image, see the
task definition reference
in the Swale documentation.
The Dockerfile is covered by the
MIT License.
Docling is MIT-licensed, and its models keep their own licenses, listed with
their texts in /usr/share/licenses/docling-models.
This image also contains software from other projects, each under its own
license. The license texts those projects ship are inside the image:
/usr/share/doc/<package>/copyright for Ubuntu packages and the *.dist-info
directory of each Python package. /usr/share/licenses adds those of
latex2mathml and python-etcd, whose packages ship none, and Intel's for the
Math Kernel Library built into PyTorch. Source code for its GPL
and LGPL components:
https://launchpad.net/ubuntu/+source/<source-package>/<version>https://pypi.org/project/<name>/<version>/#files. The
compiler runtime libraries inside some wheels (libgfortran, libgomp,
libquadmath) are part of GCC.We also provide that source code on request: see Third-party software.
It also contains NVIDIA and Intel software, which is not open source. Each licenses its software under its own terms, which you accept by pulling or using this image: see Third-party software.
docker pull swaleio/docling:latest