FROM my_ocrd_workflow-core

ARG PIP_INSTALL="pip3 install --no-cache-dir --use-feature=2020-resolver"
ARG DINGLEHOPPER_COMMIT="2b98f69"


# Build pip installable stuff
RUN ${PIP_INSTALL} \
# Now the real stuff:
    https://github.com/qurator-spk/dinglehopper/archive/$DINGLEHOPPER_COMMIT.tar.gz


# Check pip dependencies
RUN pip3 check


# Default command
CMD ["ocrd-dinglehopper"]