HUB
Sign inSign up
docling logo

swaleio/docling

By swaleio

•Updated 3 days ago

Docling document conversion with its models, on PyTorch CUDA, for Swale tasks. Backs the docling tas

Image
0

76

swaleio/docling repository overview

⁠docling

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.

  • Base: the official PyTorch CUDA runtime image (pytorch/pytorch, CUDA 13.0, cuDNN 9); its CUDA build of PyTorch also runs on a CPU
  • Installed: Docling at the version pinned in requirements.txt⁠, and the models it downloads by default in /opt/docling/models, which DOCLING_ARTIFACTS_PATH names
  • User: non-root swale (uid 1000)
  • WORKDIR /mnt/workspace, no ENTRYPOINT

⁠Invocation

The image declares no entrypoint, so a task definition's exec.args are the full command line: ["docling", "convert", "<source>", "--output", "<dir>", "--to", "md"].

⁠Compute

Docling runs on the GPU when the compute type has one and on the CPU otherwise.

⁠Models and licenses

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.

⁠Tags

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.

⁠Building

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:

  • Ubuntu packages: https://launchpad.net/ubuntu/+source/<source-package>/<version>
  • Python packages: https://pypi.org/project/<name>/<version>/#files. The compiler runtime libraries inside some wheels (libgfortran, libgomp, libquadmath) are part of GCC⁠.
  • FFmpeg, which OpenCV's Python package bundles: https://ffmpeg.org/releases/⁠, in the release OpenCV's build files name for that wheel.

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⁠.

Tag summary
Recent tags
Content type
Image
Digest
sha256:ffffa0bf5…
Size
4.5 GB
Last updated
3 days ago
docker pull swaleio/docling:latest