Max

kontor/ocr (sha256:0134fcedc87385228ebca8ccdaed647d67880d466ff1036d8afe0bba71376f35)

Published 2026-09-09 10:59:10 +00:00 by Max

Installation

docker pull forgejo.apps.zenodev.com/max/kontor/ocr@sha256:0134fcedc87385228ebca8ccdaed647d67880d466ff1036d8afe0bba71376f35
sha256:0134fcedc87385228ebca8ccdaed647d67880d466ff1036d8afe0bba71376f35

About this package

The Ubuntu container image maintained by Canonical Ubuntu is a Debian-based Linux operating system that runs from the desktop to the cloud, to all your internet connected things. It is the world's most popular operating system across public clouds and OpenStack clouds. It is the number one platform for containers; from Docker to Kubernetes to LXD, Ubuntu can run your containers at scale. Fast, secure and simple, Ubuntu powers millions of PCs worldwide.

Image layers

umoci raw add-layer --image /home/buildd/rockcraft-ubuntu-a6225d8d49f545f312e4b2d59bc5cd53/images/ubuntu:rockcraft-base /home/buildd/rockcraft-ubuntu-a6225d8d49f545f312e4b2d59bc5cd53/images/.temp_layer.9276.tar --tag 26.04
umoci config --image /home/buildd/rockcraft-ubuntu-a6225d8d49f545f312e4b2d59bc5cd53/images/ubuntu:26.04 --clear=config.entrypoint --clear=config.cmd
umoci config --image /home/buildd/rockcraft-ubuntu-a6225d8d49f545f312e4b2d59bc5cd53/images/ubuntu:26.04 --clear=config.cmd --config.cmd /bin/bash
umoci config --image /home/buildd/rockcraft-ubuntu-a6225d8d49f545f312e4b2d59bc5cd53/images/ubuntu:26.04 --config.env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
umoci config --image /home/buildd/rockcraft-ubuntu-a6225d8d49f545f312e4b2d59bc5cd53/images/ubuntu:26.04 --clear=config.labels --config.label org.opencontainers.image.version=26.04 --config.label org.opencontainers.image.title=ubuntu --config.label org.opencontainers.image.created=2026-08-17T09:04:34.463771+00:00 --config.label org.opencontainers.image.description=The Ubuntu container image maintained by Canonical Ubuntu is a Debian-based Linux operating system that runs from the desktop to the cloud, to all your internet connected things. It is the world's most popular operating system across public clouds and OpenStack clouds. It is the number one platform for containers; from Docker to Kubernetes to LXD, Ubuntu can run your containers at scale. Fast, secure and simple, Ubuntu powers millions of PCs worldwide.
umoci config --image /home/buildd/rockcraft-ubuntu-a6225d8d49f545f312e4b2d59bc5cd53/images/ubuntu:26.04 --clear=manifest.annotations --manifest.annotation org.opencontainers.image.version=26.04 --manifest.annotation org.opencontainers.image.title=ubuntu --manifest.annotation org.opencontainers.image.created=2026-08-17T09:04:34.463771+00:00 --manifest.annotation org.opencontainers.image.description=The Ubuntu container image maintained by Canonical Ubuntu is a Debian-based Linux operating system that runs from the desktop to the cloud, to all your internet connected things. It is the world's most popular operating system across public clouds and OpenStack clouds. It is the number one platform for containers; from Docker to Kubernetes to LXD, Ubuntu can run your containers at scale. Fast, secure and simple, Ubuntu powers millions of PCs worldwide.
umoci raw add-layer --image /home/buildd/rockcraft-ubuntu-a6225d8d49f545f312e4b2d59bc5cd53/images/ubuntu:26.04 /home/buildd/rockcraft-ubuntu-a6225d8d49f545f312e4b2d59bc5cd53/images/.temp_layer.control_data.9276.tar
ENV LANG=C.UTF-8
ENV TZ=UTC
RUN /bin/sh -c echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections # buildkit
RUN /bin/sh -c apt-get update && apt-get install -y --no-install-recommends python3 python-is-python3 # buildkit
RUN /bin/sh -c apt-get update && apt-get install -y --no-install-recommends ghostscript fonts-droid-fallback fonts-noto-core fonts-noto-cjk jbig2dec pngquant tesseract-ocr tesseract-ocr-chi-sim tesseract-ocr-deu tesseract-ocr-eng tesseract-ocr-fra tesseract-ocr-por tesseract-ocr-spa unpaper && rm -rf /var/lib/apt/lists/* # buildkit
RUN /bin/sh -c userdel -r ubuntu 2>/dev/null; groupdel ubuntu 2>/dev/null; groupadd -g 1000 app && useradd -u 1000 -g app -m -d /home/app app # buildkit
ENV HOME=/home/app
WORKDIR /app
COPY /usr/local/lib/ /usr/local/lib/ # buildkit
COPY /usr/local/bin/ /usr/local/bin/ # buildkit
COPY --chown=app:app /app /app # buildkit
RUN /bin/sh -c rm -rf /app/.git && ln -s /app/misc/webservice.py /app/webservice.py && ln -s /app/misc/watcher.py /app/watcher.py && chown app:app /app # buildkit
RUN /bin/sh -c mkdir -p /data && chown app:app /data # buildkit
WORKDIR /data
ENV PATH=/app/.venv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
USER app
ENTRYPOINT ["/app/.venv/bin/ocrmypdf"]
USER root
RUN /bin/sh -c apt-get update && apt-get install -y --no-install-recommends poppler-utils && rm -rf /var/lib/apt/lists/* # buildkit
USER app
COPY server.py /opt/ocr/server.py # buildkit
ENV OCR_PORT=8790
EXPOSE [8790/tcp]
ENTRYPOINT []
CMD ["python3" "/opt/ocr/server.py"]
HEALTHCHECK {Test:[CMD-SHELL python3 -c "import urllib.request,sys; sys.exit(0 if urllib.request.urlopen('http://127.0.0.1:8790/health', timeout=3).status==200 else 1)"] Interval:30s Timeout:5s StartPeriod:10s StartInterval:0s Retries:3}

Labels

Key Value
org.opencontainers.image.created 2026-08-17T09:04:34.463771+00:00
org.opencontainers.image.description The Ubuntu container image maintained by Canonical Ubuntu is a Debian-based Linux operating system that runs from the desktop to the cloud, to all your internet connected things. It is the world's most popular operating system across public clouds and OpenStack clouds. It is the number one platform for containers; from Docker to Kubernetes to LXD, Ubuntu can run your containers at scale. Fast, secure and simple, Ubuntu powers millions of PCs worldwide.
org.opencontainers.image.title ubuntu
org.opencontainers.image.version 26.04
Details
Container
2026-09-09 10:59:10 +00:00
0
OCI / Docker
linux/arm64
440 MiB
Versions (3) View all
latest 2026-09-09
buildcache 2026-09-09
f1093e0 2026-09-09