ruleconnect/webapp (258fce2e67165991893bfb3f46eceec985a77e08)
Published 2026-10-19 09:42:00 +00:00 by Markus
Installation
docker pull git.inocon.com/inocon/ruleconnect/webapp:258fce2e67165991893bfb3f46eceec985a77e08sha256:cbb42015efd714947582057d0de12e2a1b12a112ad8ffd9d5073d333aacc0464Image layers
| # debian.sh --arch 'amd64' out/ 'trixie' '@1791158400' |
| ENV PATH=/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin |
| RUN /bin/sh -c set -eux; apt-get update; apt-get install -y --no-install-recommends ca-certificates netbase tzdata ; apt-get dist-clean # buildkit |
| ENV GPG_KEY=7169605F62C751356D054A26A821E680E5FA6305 |
| ENV PYTHON_VERSION=3.13.16 |
| ENV PYTHON_SHA256=f4b1bfb3c79b5bb11b8d228a12504163b4c0dab4d679828d8f5f26b6cb6ab35d |
| RUN /bin/sh -c set -eux; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends dpkg-dev g++ gcc gnupg libbluetooth-dev libbz2-dev libc6-dev libdb-dev libffi-dev libgdbm-dev liblzma-dev libncursesw5-dev libreadline-dev libsqlite3-dev libssl-dev make tk-dev uuid-dev wget xz-utils zlib1g-dev ; wget -O python.tar.xz "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz"; echo "$PYTHON_SHA256 *python.tar.xz" | sha256sum -c -; wget -O python.tar.xz.asc "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz.asc"; GNUPGHOME="$(mktemp -d)"; export GNUPGHOME; gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys "$GPG_KEY"; gpg --batch --verify python.tar.xz.asc python.tar.xz; gpgconf --kill all; rm -rf "$GNUPGHOME" python.tar.xz.asc; mkdir -p /usr/src/python; tar --extract --directory /usr/src/python --strip-components=1 --file python.tar.xz; rm python.tar.xz; cd /usr/src/python; gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; ./configure --build="$gnuArch" --enable-loadable-sqlite-extensions --enable-optimizations --enable-option-checking=fatal --enable-shared $(test "${gnuArch%%-*}" != 'riscv64' && echo '--with-lto') --with-ensurepip ; nproc="$(nproc)"; EXTRA_CFLAGS="$(dpkg-buildflags --get CFLAGS)"; LDFLAGS="$(dpkg-buildflags --get LDFLAGS)"; LDFLAGS="${LDFLAGS:-} -Wl,--strip-all"; arch="$(dpkg --print-architecture)"; arch="${arch##*-}"; case "$arch" in amd64|arm64) EXTRA_CFLAGS="${EXTRA_CFLAGS:-} -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer"; ;; i386) ;; *) EXTRA_CFLAGS="${EXTRA_CFLAGS:-} -fno-omit-frame-pointer"; ;; esac; make -j "$nproc" "EXTRA_CFLAGS=${EXTRA_CFLAGS:-}" "LDFLAGS=${LDFLAGS:-}" ; rm python; make -j "$nproc" "EXTRA_CFLAGS=${EXTRA_CFLAGS:-}" "LDFLAGS=${LDFLAGS:-} -Wl,-rpath='\$\$ORIGIN/../lib'" python ; make install; cd /; rm -rf /usr/src/python; find /usr/local -depth \( \( -type d -a \( -name test -o -name tests -o -name idle_test \) \) -o \( -type f -a \( -name '*.pyc' -o -name '*.pyo' -o -name 'libpython*.a' \) \) \) -exec rm -rf '{}' + ; ldconfig; apt-mark auto '.*' > /dev/null; apt-mark manual $savedAptMark; find /usr/local -type f -executable -not \( -name '*tkinter*' \) -exec ldd '{}' ';' | awk '/=>/ { so = $(NF-1); if (index(so, "/usr/local/") == 1) { next }; gsub("^/(usr/)?", "", so); printf "*%s\n", so }' | sort -u | xargs -rt dpkg-query --search | awk 'sub(":$", "", $1) { print $1 }' | sort -u | xargs -r apt-mark manual ; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; apt-get dist-clean; export PYTHONDONTWRITEBYTECODE=1; python3 --version; pip3 --version # buildkit |
| RUN /bin/sh -c set -eux; for src in idle3 pip3 pydoc3 python3 python3-config; do dst="$(echo "$src" | tr -d 3)"; [ -s "/usr/local/bin/$src" ]; [ ! -e "/usr/local/bin/$dst" ]; ln -svT "$src" "/usr/local/bin/$dst"; done # buildkit |
| CMD ["python3"] |
| RUN /bin/sh -c printf 'precedence ::ffff:0:0/96 100\n' > /etc/gai.conf # buildkit |
| RUN /bin/sh -c apt-get update -y && apt-get install -y pkg-config build-essential libxml2-dev libxslt1-dev zlib1g-dev libstdc++6 openssl libncurses6 libsctp1 locales poppler-utils libchm-bin tesseract-ocr tesseract-ocr-deu libgl1 tcptraceroute net-tools curl xz-utils fonts-texgyre fonts-roboto # buildkit |
| RUN /bin/sh -c sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && locale-gen # buildkit |
| ENV LANG=en_US.UTF-8 |
| ENV LANGUAGE=en_US:en |
| ENV LC_ALL=en_US.UTF-8 |
| ARG TYPST_VERSION=0.14.2 |
| RUN |1 TYPST_VERSION=0.14.2 /bin/sh -c ARCH=$(uname -m) && if [ "$ARCH" = "x86_64" ]; then TYPST_ARCH="x86_64-unknown-linux-musl"; elif [ "$ARCH" = "aarch64" ]; then TYPST_ARCH="aarch64-unknown-linux-musl"; else echo "Unsupported architecture: $ARCH" && exit 1; fi && curl -4 --fail --show-error --location --connect-timeout 15 --max-time 120 --retry 3 --retry-delay 2 --retry-max-time 180 -o typst.tar.xz "https://github.com/typst/typst/releases/download/v${TYPST_VERSION}/typst-${TYPST_ARCH}.tar.xz" && tar -xJf typst.tar.xz && mv typst-${TYPST_ARCH}/typst /usr/local/bin/typst && rm -rf typst.tar.xz typst-${TYPST_ARCH} # buildkit |
| COPY ./apps/ruleconnect/priv/python/requirements.txt /tmp/requirements.txt # buildkit |
| RUN |1 TYPST_VERSION=0.14.2 /bin/sh -c python -m pip install --extra-index-url https://download.pytorch.org/whl/cpu -r /tmp/requirements.txt && python -m pip check && python -c 'import sys, numpy, torch, torchvision; from docling.document_converter import DocumentConverter; assert sys.version_info[:2] == (3, 13); assert torch.version.cuda is None' && rm /tmp/requirements.txt # buildkit |
| WORKDIR /app |
| RUN |1 TYPST_VERSION=0.14.2 /bin/sh -c chown nobody /app # buildkit |
| ENV MIX_ENV=prod |
| ENV SECRET_KEY_BASE=xkUSjNw0FSHp+YprIucdq02wHT+NvFtXgzihNNiJeHAXf6BSB8bFwJekMuXa8inC |
| COPY --chown=nobody:root /app/rel_built ./ # buildkit |
| RUN |1 TYPST_VERSION=0.14.2 /bin/sh -c set -eu; nif="$(find /app/lib -path '*/priv/native/*fastembed_nif.so' -print -quit)"; test -n "$nif"; ldd -r "$nif"; worker="$(find /app/lib -path '*/priv/native/fastembed_worker' -print -quit)"; test -n "$worker"; ldd -r "$worker" # buildkit |
| USER nobody |
| ARG RELEASE_REVISION=258fce2e67165991893bfb3f46eceec985a77e08 |
| ENV RELEASE_REVISION=258fce2e67165991893bfb3f46eceec985a77e08 |
| ENV HOME=/app |
| ENV TORCH_CPP_LOG_LEVEL=ERROR |
| RUN |2 TYPST_VERSION=0.14.2 RELEASE_REVISION=258fce2e67165991893bfb3f46eceec985a77e08 /bin/sh -c mkdir -p /app/.EasyOCR # buildkit |
| CMD ["sh" "-c" "/app/bin/migrate && /app/bin/server"] |
Details
2026-10-19 09:42:00 +00:00
Versions (72)
View all
Container
0
OCI / Docker
linux/amd64
1.1 GiB
999b693203c69d7c62a98b5082808e9b76b3f3e0
2026-10-24
develop
2026-10-24
c553a0184a3dfc0a8f4142e809a109af17b6200a
2026-10-24
buildcache-pilot-persistent
2026-10-23