Block a user
ebolo-ocr (3cfbdce)
Published 2025-03-02 16:57:44 +07:00 by ebolo
Installation
docker pull pikachu-gitea.duydao.org/ebolo/ebolo-ocr:3cfbdcesha256:c000131e4efb458963781107e185cac8fddbc8793669a4309d7deb18174ba380Image Layers
| ARG RELEASE |
| ARG LAUNCHPAD_BUILD_ARCH |
| LABEL org.opencontainers.image.ref.name=ubuntu |
| LABEL org.opencontainers.image.version=18.04 |
| ADD file:3c74e7e08cbf9a87694ce6fa541af617599680fa54d9e48556fc0fbc120b4a83 in / |
| CMD ["/bin/bash"] |
| LABEL maintainer=tomer.klein@gmail.com |
| ENV PYTHONIOENCODING=utf-8 |
| ENV LANG=C.UTF-8 |
| RUN /bin/sh -c apt update -yqq # buildkit |
| RUN /bin/sh -c apt -yqq install software-properties-common # buildkit |
| RUN /bin/sh -c add-apt-repository ppa:alex-p/tesseract-ocr-devel -y # buildkit |
| RUN /bin/sh -c apt -yqq install python3-pip && apt -yqq install libffi-dev && apt -yqq install libssl-dev && apt -yqq install tesseract-ocr && apt -yqq install ghostscript && apt -yqq install imagemagick # buildkit |
| RUN /bin/sh -c pip3 install --upgrade pip --no-cache-dir && pip3 install --upgrade setuptools --no-cache-dir && pip3 install flask --no-cache-dir && pip3 install flask_restful --no-cache-dir && pip3 install loguru --no-cache-dir && pip3 install cryptography --no-cache-dir && pip3 install pytesseract --no-cache-dir && pip3 install Pillow --no-cache-dir && pip3 install Image --no-cache-dir && pip3 install pyyaml --no-cache-dir # buildkit |
| RUN /bin/sh -c mkdir -p /opt/ocr/tmp # buildkit |
| RUN /bin/sh -c sed -i_bak 's/rights="none" pattern="PDF"/rights="read | write" pattern="PDF"/' /etc/ImageMagick-6/policy.xml # buildkit |
| COPY ocr /opt/ocr # buildkit |
| COPY traineddata /usr/share/tesseract-ocr/5/tessdata # buildkit |
| EXPOSE map[8080/tcp:{}] |
| ENTRYPOINT ["/usr/bin/python3" "/opt/ocr/ocr.py"] |
| COPY tessdata/* /usr/share/tesseract-ocr/5/tessdata/ # buildkit |
Labels
| Key | Value |
|---|---|
| maintainer | tomer.klein@gmail.com |
| org.opencontainers.image.ref.name | ubuntu |
| org.opencontainers.image.version | 18.04 |