ocrd-galley/Dockerfile-sbb_textline_detector
2020-09-16 19:26:38 +02:00

22 lines
434 B
Text

FROM my_ocrd_workflow-core
ENV SBB_TEXTLINE_DETECTOR_COMMIT 0f09f4a
# Build pip installable stuff
RUN pip3 install --no-cache-dir \
# Now the real stuff:
https://github.com/qurator-spk/sbb_textline_detector/archive/$SBB_TEXTLINE_DETECTOR_COMMIT.tar.gz
# Copy OCR models
COPY data/textline_detection /var/lib/textline_detection
# Check pip dependencies
RUN pip3 check
# Default command
CMD ["ocrd-sbb-textline-detector"]