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-10-22 21:08:13 +02:00
|
|
|
|
2020-12-03 18:45:52 +01:00
|
|
|
ARG PIP_INSTALL="pip install --no-cache-dir"
|
2021-01-18 16:48:03 +01:00
|
|
|
ARG SBB_BINARIZATION_COMMIT="ea69494"
|
2020-10-22 21:08:13 +02:00
|
|
|
|
|
|
|
|
|
|
|
# Build pip installable stuff
|
|
|
|
RUN ${PIP_INSTALL} \
|
|
|
|
# Now the real stuff:
|
|
|
|
https://github.com/qurator-spk/sbb_binarization/archive/$SBB_BINARIZATION_COMMIT.tar.gz
|
|
|
|
|
|
|
|
|
|
|
|
# Copy models
|
|
|
|
COPY data/sbb_binarization /var/lib/sbb_binarization
|
|
|
|
|
|
|
|
|
|
|
|
# Check pip dependencies
|
2020-11-19 18:25:10 +01:00
|
|
|
RUN pip check
|
2020-10-22 21:08:13 +02:00
|
|
|
|
|
|
|
|
|
|
|
# Default command
|
|
|
|
CMD ["ocrd-sbb-binarize"]
|