| LABEL maintainer="Red Hat, Inc." |
| LABEL vendor="Red Hat, Inc." |
| LABEL url="https://catalog.redhat.com/en/search?searchType=containers" |
| LABEL com.redhat.component="ubi10-minimal-container" name="ubi10/ubi-minimal" version="10.1" cpe="cpe:/o:redhat:enterprise_linux:10.1" distribution-scope="public" |
| LABEL com.redhat.license_terms="https://www.redhat.com/en/about/red-hat-end-user-license-agreements#UBI" |
| LABEL summary="Provides the latest release of the minimal Red Hat Universal Base Image 10." |
| LABEL description="The Universal Base Image Minimal is a stripped down image that uses microdnf as a package manager. This base image is freely redistributable, but Red Hat only supports Red Hat technologies through subscriptions for Red Hat products. This image is maintained by Red Hat and updated regularly." |
| LABEL io.k8s.description="The Universal Base Image Minimal is a stripped down image that uses microdnf as a package manager. This base image is freely redistributable, but Red Hat only supports Red Hat technologies through subscriptions for Red Hat products. This image is maintained by Red Hat and updated regularly." |
| LABEL io.k8s.display-name="Red Hat Universal Base Image 10 Minimal" |
| LABEL io.openshift.expose-services="" |
| LABEL io.openshift.tags="minimal rhel10" |
| ENV container oci |
| COPY dir:ab88dbc5c421721056a4539f41aea4ce909f7032f536329269fb1718e0c3e67d in / |
| COPY file:5de33b5fc08b00635bccf9134a18978dba13e2250aa51838f9969515a3957847 in /etc/yum.repos.d/. |
| CMD ["/bin/bash"] |
| COPY file:595171150af68abc798ea385f7988d74b566aa8e84babff137f00b08b2164683 in /usr/share/buildinfo/content-sets.json |
| COPY file:595171150af68abc798ea385f7988d74b566aa8e84babff137f00b08b2164683 in /root/buildinfo/content_manifests/content-sets.json |
| COPY file:6cb7b50636b55f291cf75a2750279d2c83bd2761ac9a492a49d90a49cb72e8ac in /usr/share/buildinfo/labels.json |
| COPY file:6cb7b50636b55f291cf75a2750279d2c83bd2761ac9a492a49d90a49cb72e8ac in /root/buildinfo/labels.json |
| LABEL "architecture"="x86_64" "vcs-type"="git" "vcs-ref"="1b6103ed0475d35e7b65ab0a0bcaa2f6d4bde92b" "org.opencontainers.image.revision"="1b6103ed0475d35e7b65ab0a0bcaa2f6d4bde92b" "build-date"="2026-02-04T04:54:43Z" "org.opencontainers.image.created"="2026-02-04T04:54:43Z" "release"="1770180557"org.opencontainers.image.revision=1b6103ed0475d35e7b65ab0a0bcaa2f6d4bde92b,org.opencontainers.image.created=2026-02-04T04:54:43Z |
| /bin/sh -c microdnf install -y python3 python3-pip libgomp glib2 libSM libXext libXrender mesa-libGL && microdnf clean all |
| WORKDIR /app |
| COPY file:3c9880ba44450a63b427d0eab432d733dccb1e21ee27d516ca4252f8e8657bbe in . |
| /bin/sh -c pip install --no-cache-dir -r requirements.txt |
| COPY file:8fbe4871057b13825ac0f8367480d3ce4fd9263ea7986cb797c6e57ebda47c55 in . |
| COPY file:480b463172caa9da7ad66d074ef2fba34a999b2468acfa3f88bcc54dd3884163 in . |
| COPY file:711ae06636052a0a8a692de947b373c252812fd9b4bb73c7578b79987e0e5fe7 in . |
| /bin/sh -c chmod +x main.py |
| ENV PADDLE_PDX_CACHE_HOME=/app/.paddlex |
| ENV HOME=/app |
| /bin/sh -c python3 -c "from paddleocr import PaddleOCR; PaddleOCR(lang='ch', use_textline_orientation=True, device='cpu', use_doc_orientation_classify=False, use_doc_unwarping=False); PaddleOCR(lang='ar', use_textline_orientation=True, device='cpu', use_doc_orientation_classify=False, use_doc_unwarping=False); print('Models downloaded successfully')" && chown -R 1001:0 /app/.paddlex |
| USER 1001 |
| ENV REDIS_URL=redis://localhost:6379 |
| ENV SERVER_URL=http://localhost:3000 |
| ENV OCR_JOB_QUEUE_NAME=ocr-jobs |
| ENV WORKER_CONCURRENCY=1 |
| CMD ["python3", "main.py"] |