gutachta-docpipe (latest)

Published 2026-09-03 20:31:07 +00:00 by ivo.zilkenat

Installation

docker pull gitea.i.ivo-zilkenat.de/ivo.zilkenat/gutachta-docpipe:latest
sha256:d0283387a119f2ed22632954c583cfb3f678ef4d40536176f12e3e43c071b7bb

Image Layers

ARG RELEASE
ARG LAUNCHPAD_BUILD_ARCH
LABEL org.opencontainers.image.version=24.04
ADD file:cb9335ce6f27399c2b17787739d6675502767c53e0335ded2a5f0d003d996650 in /
CMD ["/bin/bash"]
ARG EXPECTED_LIBREOFFICE_MAJOR=24.2
ENV LANG=C.UTF-8 LC_ALL=C.UTF-8 PYTHONUNBUFFERED=1 PIP_NO_CACHE_DIR=1
RUN |1 EXPECTED_LIBREOFFICE_MAJOR=24.2 /bin/sh -c apt-get update && apt-get install -y --no-install-recommends libreoffice-writer fontconfig fonts-liberation python3 python3-venv curl ca-certificates && rm -rf /var/lib/apt/lists/* # buildkit
RUN |1 EXPECTED_LIBREOFFICE_MAJOR=24.2 /bin/sh -c set -eux; version="$(soffice --version | head -n1)"; echo "docpipe image ships: $version"; case "$version" in *"LibreOffice ${EXPECTED_LIBREOFFICE_MAJOR}."*) ;; *) echo "REFUSING TO BUILD: expected LibreOffice ${EXPECTED_LIBREOFFICE_MAJOR}.x, got '$version'." >&2; echo "The character offsets docpipe hands the app are produced by this filter." >&2; echo "Re-verify the goldset before changing EXPECTED_LIBREOFFICE_MAJOR." >&2; exit 1 ;; esac # buildkit
WORKDIR /opt/gutachta/services/docpipe
COPY services/docpipe/requirements.txt ./requirements.txt # buildkit
RUN |1 EXPECTED_LIBREOFFICE_MAJOR=24.2 /bin/sh -c python3 -m venv /opt/venv && /opt/venv/bin/pip install --no-cache-dir -r requirements.txt # buildkit
ENV PATH=/opt/venv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
COPY services/docpipe/pyproject.toml ./pyproject.toml # buildkit
COPY services/docpipe/docpipe/ ./docpipe/ # buildkit
COPY services/docpipe/tests/ ./tests/ # buildkit
RUN |1 EXPECTED_LIBREOFFICE_MAJOR=24.2 /bin/sh -c python -m docpipe preflight # buildkit
RUN |1 EXPECTED_LIBREOFFICE_MAJOR=24.2 /bin/sh -c useradd --create-home --uid 1001 docpipe && install -d -o docpipe -g docpipe /tmp/docpipe && chown -R docpipe:docpipe /opt/gutachta # buildkit
ENV TMPDIR=/tmp/docpipe HOME=/home/docpipe DOCPIPE_HOST=0.0.0.0 DOCPIPE_PORT=3062
USER docpipe
EXPOSE [3062/tcp]
HEALTHCHECK {Test:[CMD-SHELL curl -fsS "http://127.0.0.1:${DOCPIPE_PORT}/health" > /dev/null || exit 1] Interval:30s Timeout:10s StartPeriod:2m0s StartInterval:0s Retries:3}
CMD ["sh" "-c" "exec python -m docpipe serve --host \"$DOCPIPE_HOST\" --port \"$DOCPIPE_PORT\""]

Labels

Key Value
org.opencontainers.image.revision e87dd9b49a03cc33167e3e986f4d1da8de3db3ee
org.opencontainers.image.source https://gitea.i.ivo-zilkenat.de/ivo.zilkenat/gutachta
org.opencontainers.image.version 24.04
Details
Container
2026-09-03 20:31:07 +00:00
10
OCI / Docker
linux/amd64
212 MiB
Versions (2) View all
sha-e87dd9b 2026-09-03
latest 2026-09-03