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:$DRONE_COMMIT
|
2020-10-27 16:35:46 +01:00
|
|
|
|
2020-12-03 18:45:52 +01:00
|
|
|
ARG PIP_INSTALL="pip install --no-cache-dir"
|
2020-10-27 16:35:46 +01:00
|
|
|
ARG OCRD_CIS_VERSION="0.1.5"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Build pip installable stuff
|
|
|
|
|
RUN ${PIP_INSTALL} \
|
|
|
|
|
# Now the real stuff:
|
|
|
|
|
"https://github.com/cisocrgroup/ocrd_cis/archive/v${OCRD_CIS_VERSION}.tar.gz"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Check pip dependencies
|
2020-11-19 18:25:10 +01:00
|
|
|
RUN pip check
|
2020-10-27 16:35:46 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
# Default command
|
|
|
|
|
CMD ["ocrd-cis-ocropy-segment"]
|