2021-02-12 15:00:51 +01:00
|
|
|
ARG DRONE_COMMIT="latest"
|
2021-02-15 14:09:15 +01:00
|
|
|
FROM quratorspk/ocrd-galley-core-cuda10.0:$DRONE_COMMIT
|
2020-08-14 14:37:20 +02:00
|
|
|
|
2020-12-03 18:45:52 +01:00
|
|
|
ARG PIP_INSTALL="pip install --no-cache-dir"
|
2021-01-26 15:48:27 +01:00
|
|
|
ARG SBB_TEXTLINE_DETECTOR_COMMIT="451b71f"
|
2020-08-14 14:37:20 +02:00
|
|
|
|
|
|
|
|
|
|
|
# Build pip installable stuff
|
2020-09-25 16:11:11 +02:00
|
|
|
RUN ${PIP_INSTALL} \
|
2020-11-16 14:21:57 +01:00
|
|
|
# https://github.com/qurator-spk/sbb_textline_detection/issues/50
|
|
|
|
"h5py < 3" \
|
2020-08-14 14:37:20 +02:00
|
|
|
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
|
2020-11-19 18:25:10 +01:00
|
|
|
RUN pip check
|
2020-08-14 14:37:20 +02:00
|
|
|
|
|
|
|
|
|
|
|
# Default command
|
|
|
|
CMD ["ocrd-sbb-textline-detector"]
|