-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
45 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,35 @@ | ||
FROM ocrd/core | ||
MAINTAINER OCR-D | ||
ARG DOCKER_BASE_IMAGE | ||
FROM $DOCKER_BASE_IMAGE | ||
ARG VCS_REF | ||
ARG BUILD_DATE | ||
LABEL \ | ||
maintainer="https://ocr-d.de/kontakt" \ | ||
org.label-schema.vcs-ref=$VCS_REF \ | ||
org.label-schema.vcs-url="https://github.com/OCR-D/ocrd_calamari" \ | ||
org.label-schema.build-date=$BUILD_DATE \ | ||
org.opencontainers.image.vendor="DFG-Funded Initiative for Optical Character Recognition Development" \ | ||
org.opencontainers.image.title="ocrd_calamari" \ | ||
org.opencontainers.image.description="OCR-D compliant workspace processor for the functionality of Calamari OCR" \ | ||
org.opencontainers.image.source="https://github.com/OCR-D/ocrd_calamari" \ | ||
org.opencontainers.image.documentation="https://github.com/OCR-D/ocrd_calamari/blob/${VCS_REF}/README.md" \ | ||
org.opencontainers.image.revision=$VCS_REF \ | ||
org.opencontainers.image.created=$BUILD_DATE \ | ||
org.opencontainers.image.base.name=$DOCKER_BASE_IMAGE | ||
ENV DEBIAN_FRONTEND noninteractive | ||
ENV PYTHONIOENCODING utf8 | ||
ENV LC_ALL C.UTF-8 | ||
ENV LANG C.UTF-8 | ||
|
||
WORKDIR /build | ||
WORKDIR /build/calamari | ||
COPY Makefile . | ||
COPY setup.py . | ||
COPY pyproject.toml . | ||
COPY ocrd-tool.json . | ||
COPY requirements.txt . | ||
COPY README.md . | ||
COPY ocrd_calamari ocrd_calamari | ||
COPY ocrd_calamari ./ocrd_calamari | ||
RUN make install | ||
RUN rm -rf /build/calamari | ||
|
||
RUN pip3 install --upgrade pip && \ | ||
pip3 install . && \ | ||
pip3 check | ||
|
||
ENTRYPOINT ["/usr/local/bin/ocrd-calamari-recognize"] | ||
WORKDIR /data | ||
VOLUME ["/data"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters