contract_validator (latest)

Published 2026-06-12 14:10:10 +02:00 by kr00lix

Installation

docker pull git.kovalchuk.guru/kr00lix/contract_validator:latest
sha256:eca38d65cb07642d7ab1a022a7e2e3ed1efe66ac6223d5996d4f2ca06d5a389c

Image layers

# debian.sh --arch 'amd64' out/ 'bookworm' '@1781049600'
ARG TYPST_VERSION=0.14.2
RUN |1 TYPST_VERSION=0.14.2 /bin/sh -c apt-get update -y && apt-get install -y --no-install-recommends libstdc++6 openssl libncurses6 locales ca-certificates python3 python3-pip python3-venv curl ffmpeg gosu poppler-utils xz-utils && sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && locale-gen && python3 -m venv /opt/markitdown && /opt/markitdown/bin/pip install --no-cache-dir 'markitdown[all]' 'markitdown-ocr' 'openai' && ln -s /opt/markitdown/bin/markitdown /usr/local/bin/markitdown && ARCH="$(uname -m)" && case "$ARCH" in x86_64) TYPST_ARCH="x86_64-unknown-linux-musl" ;; aarch64) TYPST_ARCH="aarch64-unknown-linux-musl" ;; *) echo "unsupported arch: $ARCH" && exit 1 ;; esac && curl -fsSL "https://github.com/typst/typst/releases/download/v${TYPST_VERSION}/typst-${TYPST_ARCH}.tar.xz" -o /tmp/typst.tar.xz && tar -xf /tmp/typst.tar.xz -C /tmp && mv "/tmp/typst-${TYPST_ARCH}/typst" /usr/local/bin/typst && rm -rf /tmp/typst.tar.xz "/tmp/typst-${TYPST_ARCH}" && apt-get clean && rm -rf /var/lib/apt/lists/* # buildkit
COPY scripts/markitdown_ocr.py /usr/local/bin/markitdown-ocr # buildkit
RUN |1 TYPST_VERSION=0.14.2 /bin/sh -c chmod +x /usr/local/bin/markitdown-ocr && sed -i '1s|#!/usr/bin/env python3|#!/opt/markitdown/bin/python|' /usr/local/bin/markitdown-ocr # buildkit
ENV LANG=en_US.UTF-8 LANGUAGE=en_US:en LC_ALL=en_US.UTF-8
WORKDIR /app
RUN |1 TYPST_VERSION=0.14.2 /bin/sh -c groupadd --gid 1000 app && useradd --uid 1000 --gid 1000 --create-home --shell /bin/bash app # buildkit
RUN |1 TYPST_VERSION=0.14.2 /bin/sh -c mkdir -p /data/contracts && chown -R app:app /data # buildkit
COPY --chown=app:app /app/_build/prod/rel/contract_validator ./ # buildkit
COPY scripts/entrypoint.sh /entrypoint.sh # buildkit
RUN |1 TYPST_VERSION=0.14.2 /bin/sh -c chmod +x /entrypoint.sh # buildkit
ENV PHX_SERVER=true
ENV PORT=4000
ENV HOME=/home/app
EXPOSE map[4000/tcp:{}]
HEALTHCHECK &{["CMD-SHELL" "curl -fsS http://localhost:4000/ >/dev/null || exit 1"] "30s" "5s" "30s" "0s" '\x03'}
ENTRYPOINT ["/entrypoint.sh"]
CMD ["bin/contract_validator" "start"]

Labels

Key Value
org.opencontainers.image.created 2026-06-12T12:03:16.628Z
org.opencontainers.image.description
org.opencontainers.image.licenses
org.opencontainers.image.revision 893e539674e66af7358edb29d206ae4ff9b123b5
org.opencontainers.image.source https://github.com/Kr00lIX/contract_validator
org.opencontainers.image.title contract_validator
org.opencontainers.image.url https://github.com/Kr00lIX/contract_validator
org.opencontainers.image.version latest
Details
Container
2026-06-12 14:10:10 +02:00
0
OCI / Docker
linux/amd64
465 MiB
Versions (3) View all
latest 2026-06-12
sha-893e539 2026-06-12
sha-62069ed 2026-06-12