Move processors into their own Docker container

This commit is contained in:
Gerber, Mike 2020-08-14 14:37:20 +02:00
parent 894cbeee32
commit 02eae7b6fa
11 changed files with 208 additions and 122 deletions

View file

@ -0,0 +1,22 @@
FROM boxed-base
ENV SBB_TEXTLINE_DETECTOR_COMMIT 8b01d9e
# 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"]