2023-03-15 17:04:59 +01:00
|
|
|
ARG GIT_COMMIT="latest"
|
2023-08-08 12:09:33 +02:00
|
|
|
FROM quratorspk/ocrd-galley-core-cuda12.1:$GIT_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"
|
2022-08-22 20:08:11 +02:00
|
|
|
ARG SBB_BINARIZATION_VERSION="0.0.10"
|
2020-10-22 21:08:13 +02:00
|
|
|
|
|
|
|
|
|
|
|
# Build pip installable stuff
|
|
|
|
RUN ${PIP_INSTALL} \
|
|
|
|
# Now the real stuff:
|
2021-05-07 21:03:00 +02:00
|
|
|
"sbb_binarization == $SBB_BINARIZATION_VERSION"
|
2020-10-22 21:08:13 +02:00
|
|
|
|
|
|
|
|
|
|
|
# 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"]
|