docling-serve-cpu (latest)
Published 2026-05-31 12:32:29 +00:00 by qwolff
Installation
docker pull code.podesta.ai/public/docling-serve-cpu:latestsha256:de285efddc9d8e60426e4312f93b22575f8963f80f9757f68c1a14b520344fd4About this package
Running Docling as an API service
Image layers
| ADD file:8657b56d7266e5f610578760677c8932ee60a1543d33754438dd1c03c9cb14a2 in / |
| LABEL org.label-schema.schema-version="1.0" org.label-schema.name="CentOS Stream 9 Base Image" org.label-schema.vendor="CentOS" org.label-schema.license="GPLv2" org.label-schema.build-date="20260518" |
| CMD ["/bin/bash"] |
| ENV SUMMARY="Base image which allows using of source-to-image." DESCRIPTION="The s2i-core image provides any images layered on top of it with all the tools needed to use source-to-image functionality while keeping the image size as small as possible." NAME=s2i-core VERSION=9 |
| LABEL summary="$SUMMARY" description="$DESCRIPTION" io.k8s.description="$DESCRIPTION" io.k8s.display-name="s2i core" io.openshift.s2i.scripts-url=image:///usr/libexec/s2i io.s2i.scripts-url=image:///usr/libexec/s2i com.redhat.component="$NAME-container" name="sclorg/$NAME-c9s" version="$VERSION" maintainer="SoftwareCollections.org <sclorg@redhat.com>" |
| ENV STI_SCRIPTS_URL=image:///usr/libexec/s2i STI_SCRIPTS_PATH=/usr/libexec/s2i APP_ROOT=/opt/app-root HOME=/opt/app-root/src PATH=/opt/app-root/src/bin:/opt/app-root/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin PLATFORM="el9" |
| /bin/sh -c INSTALL_PKGS="bsdtar findutils gettext glibc-langpack-en groff-base glibc-locale-source rsync scl-utils tar unzip xz yum" && mkdir -p ${HOME}/.pki/nssdb && chown -R 1001:0 ${HOME}/.pki && dnf install -y --setopt=tsflags=nodocs $INSTALL_PKGS && rpm -V $INSTALL_PKGS && dnf -y clean all --enablerepo='*' |
| COPY dir:7c2972cc2e4f90cf0d7644aac472086c081dea1e2f64e0f7a9bde1ea291623ec in / |
| WORKDIR ${HOME} |
| ENTRYPOINT ["container-entrypoint"] |
| CMD ["base-usage"] |
| /bin/sh -c rpm-file-permissions && useradd -u 1001 -r -g 0 -d ${HOME} -c "Default Application User" default && chown -R 1001:0 ${APP_ROOT} |
| ENV SUMMARY="Base image with essential libraries and tools used as a base for builder images like perl, python, ruby, etc." DESCRIPTION="The s2i-base image, being built upon s2i-core, provides any images layered on top of it with all the tools needed to use source-to-image functionality. Additionally, s2i-base also contains various libraries needed for it to serve as a base for other builder images, like s2i-python or s2i-ruby." NODEJS_VER=22 NAME=s2i-base |
| LABEL summary="$SUMMARY" description="$DESCRIPTION" io.k8s.description="$DESCRIPTION" io.k8s.display-name="s2i base" com.redhat.component="$NAME-container" name="sclorg/$NAME-c9s" version="$VERSION" maintainer="SoftwareCollections.org <sclorg@redhat.com>" |
| /bin/sh -c yum -y module enable nodejs:$NODEJS_VER && INSTALL_PKGS="nodejs autoconf automake bzip2 gcc-c++ gd-devel gdb git libcurl-devel libpq-devel libxml2-devel libxslt-devel lsof make mariadb-connector-c-devel openssl-devel patch procps-ng npm redhat-rpm-config sqlite-devel unzip wget which zlib-devel" && yum install -y --setopt=tsflags=nodocs $INSTALL_PKGS && rpm -V $INSTALL_PKGS && node -v | grep -qe "^v$NODEJS_VER\." && echo "Found VERSION $NODEJS_VER" && yum -y clean all --enablerepo='*' |
| EXPOSE 8080 |
| ENV PYTHON_VERSION=3.12 PATH=$HOME/.local/bin/:$PATH PYTHONUNBUFFERED=1 PYTHONIOENCODING=UTF-8 LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 PIP_NO_CACHE_DIR=off |
| ENV NAME=python3 ARCH=x86_64 |
| ENV SUMMARY="Platform for building and running Python $PYTHON_VERSION applications" DESCRIPTION="Python $PYTHON_VERSION available as container is a base platform for building and running various Python $PYTHON_VERSION applications and frameworks. Python is an easy to learn, powerful programming language. It has efficient high-level data structures and a simple but effective approach to object-oriented programming. Python's elegant syntax and dynamic typing, together with its interpreted nature, make it an ideal language for scripting and rapid application development in many areas on most platforms." |
| LABEL summary="$SUMMARY" description="$DESCRIPTION" io.k8s.description="$DESCRIPTION" io.k8s.display-name="Python 3.12" io.openshift.expose-services="8080:http" io.openshift.tags="builder,python,python312,python-312,rh-python312" com.redhat.component="$NAME" name="sclorg/python-312-c9s" usage="s2i build https://github.com/sclorg/s2i-python-container.git --context-dir=3.12/test/setup-test-app/ $FGC/$NAME python-sample-app" maintainer="SoftwareCollections.org <sclorg@redhat.com>" |
| /bin/sh -c INSTALL_PKGS="python3.12 python3.12-devel python3.12-pip nss_wrapper-libs httpd httpd-devel mod_ssl mod_auth_gssapi mod_ldap mod_session atlas-devel gcc-gfortran libffi-devel libtool-ltdl enchant krb5-devel" && yum -y --setopt=tsflags=nodocs install $INSTALL_PKGS && rpm -V $INSTALL_PKGS && yum -y clean all --enablerepo='*' |
| COPY dir:8237049c925ae491ce41a5ff406d4563c4782a896f0b54fd59713a4c78173905 in $STI_SCRIPTS_PATH |
| COPY dir:cb82f39d3378652d2a07e3622f41bccef666f52085de787a6662871d3e74c8e9 in / |
| COPY dir:f87a12029e54697ad3bdd1c0869a2a0149ef1227a0a54367bec77290841fef7b in /opt/wheels |
| /bin/sh -c python3.12 -m venv ${APP_ROOT} && ${APP_ROOT}/bin/pip install /opt/wheels/pip-* && rm -r /opt/wheels && chown -R 1001:0 ${APP_ROOT} && fix-permissions ${APP_ROOT} -P && echo "unset BASH_ENV PROMPT_COMMAND ENV" >> ${APP_ROOT}/bin/activate |
| ENV BASH_ENV="${APP_ROOT}/bin/activate" ENV="${APP_ROOT}/bin/activate" PROMPT_COMMAND=". ${APP_ROOT}/bin/activate" |
| USER 1001 |
| CMD $STI_SCRIPTS_PATH/usage |
| USER 0 |
| RUN /bin/sh -c dnf -y install --best --nodocs --setopt=install_weak_deps=False dnf-plugins-core && dnf config-manager --best --nodocs --setopt=install_weak_deps=False --save && dnf config-manager --enable crb && dnf -y update && dnf install -y $(cat /tmp/os-packages.txt) && dnf -y clean all && rm -rf /var/cache/dnf # buildkit |
| COPY /opt/app-root/src/mimalloc/out/release/libmimalloc.so /usr/local/lib/libmimalloc.so # buildkit |
| RUN /bin/sh -c /usr/bin/fix-permissions /opt/app-root/src/.cache # buildkit |
| ENV TESSDATA_PREFIX=/usr/share/tesseract/tessdata/ |
| USER 1001 |
| WORKDIR /opt/app-root/src |
| ENV OMP_NUM_THREADS=4 LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 PYTHONIOENCODING=utf-8 UV_COMPILE_BYTECODE=1 UV_LINK_MODE=copy UV_PROJECT_ENVIRONMENT=/opt/app-root DOCLING_SERVE_ARTIFACTS_PATH=/opt/app-root/src/.cache/docling/models |
| ARG UV_SYNC_EXTRA_ARGS=--no-group pypi --group cpu --no-extra flash-attn |
| RUN |1 UV_SYNC_EXTRA_ARGS=--no-group pypi --group cpu --no-extra flash-attn /bin/sh -c umask 002 && UV_SYNC_ARGS="--frozen --no-install-project --no-dev --all-extras" && uv sync ${UV_SYNC_ARGS} ${UV_SYNC_EXTRA_ARGS} --no-extra flash-attn && FLASH_ATTENTION_SKIP_CUDA_BUILD=TRUE uv sync ${UV_SYNC_ARGS} ${UV_SYNC_EXTRA_ARGS} --no-build-isolation-package=flash-attn # buildkit |
| ARG MODELS_LIST=layout tableformer picture_classifier rapidocr easyocr |
| RUN |2 UV_SYNC_EXTRA_ARGS=--no-group pypi --group cpu --no-extra flash-attn MODELS_LIST=layout tableformer picture_classifier rapidocr easyocr /bin/sh -c echo "Downloading models..." && HF_HUB_DOWNLOAD_TIMEOUT="90" HF_HUB_ETAG_TIMEOUT="90" docling-tools models download -o "${DOCLING_SERVE_ARTIFACTS_PATH}" ${MODELS_LIST} && chown -R 1001:0 ${DOCLING_SERVE_ARTIFACTS_PATH} && chmod -R g=u ${DOCLING_SERVE_ARTIFACTS_PATH} # buildkit |
| COPY --chown=1001:0 ./docling_serve ./docling_serve # buildkit |
| RUN |2 UV_SYNC_EXTRA_ARGS=--no-group pypi --group cpu --no-extra flash-attn MODELS_LIST=layout tableformer picture_classifier rapidocr easyocr /bin/sh -c umask 002 && uv sync --frozen --no-dev --all-extras ${UV_SYNC_EXTRA_ARGS} # buildkit |
| ENV LD_PRELOAD=/usr/local/lib/libmimalloc.so |
| EXPOSE [5001/tcp] |
| CMD ["docling-serve" "run"] |
Labels
| Key | Value |
|---|---|
| com.redhat.component | python3 |
| description | Python 3.12 available as container is a base platform for building and running various Python 3.12 applications and frameworks. Python is an easy to learn, powerful programming language. It has efficient high-level data structures and a simple but effective approach to object-oriented programming. Python's elegant syntax and dynamic typing, together with its interpreted nature, make it an ideal language for scripting and rapid application development in many areas on most platforms. |
| io.buildah.version | 1.33.7 |
| io.k8s.description | Python 3.12 available as container is a base platform for building and running various Python 3.12 applications and frameworks. Python is an easy to learn, powerful programming language. It has efficient high-level data structures and a simple but effective approach to object-oriented programming. Python's elegant syntax and dynamic typing, together with its interpreted nature, make it an ideal language for scripting and rapid application development in many areas on most platforms. |
| io.k8s.display-name | Python 3.12 |
| io.openshift.expose-services | 8080:http |
| io.openshift.s2i.scripts-url | image:///usr/libexec/s2i |
| io.openshift.tags | builder,python,python312,python-312,rh-python312 |
| io.s2i.scripts-url | image:///usr/libexec/s2i |
| maintainer | SoftwareCollections.org <sclorg@redhat.com> |
| name | sclorg/python-312-c9s |
| org.label-schema.build-date | 20260518 |
| org.label-schema.license | GPLv2 |
| org.label-schema.name | CentOS Stream 9 Base Image |
| org.label-schema.schema-version | 1.0 |
| org.label-schema.vendor | CentOS |
| org.opencontainers.image.created | 2026-05-27T05:38:09.537Z |
| org.opencontainers.image.description | Running Docling as an API service |
| org.opencontainers.image.licenses | MIT |
| org.opencontainers.image.revision | b0406efd544811f9ff94cbf48e5667cc0cc428fb |
| org.opencontainers.image.source | https://github.com/docling-project/docling-serve |
| org.opencontainers.image.title | docling-serve |
| org.opencontainers.image.url | https://github.com/docling-project/docling-serve |
| org.opencontainers.image.version | v1.20.0 |
| summary | Platform for building and running Python 3.12 applications |
| usage | s2i build https://github.com/sclorg/s2i-python-container.git --context-dir=3.12/test/setup-test-app/ /python3 python-sample-app |
| version | 9 |