You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.
ARG DOCKER_BASE_IMAGE
FROM $DOCKER_BASE_IMAGE
ARG VCS_REF
ARG BUILD_DATE
LABEL \
maintainer = "https://github.com/qurator-spk/dinglehopper/issues" \
org.label-schema.vcs-ref= $VCS_REF \
org.label-schema.vcs-url= "https://github.com/qurator-spk/dinglehopper" \
org.label-schema.build-date= $BUILD_DATE \
org.opencontainers.image.vendor= "Staatsbibliothek zu Berlin — SPK" \
org.opencontainers.image.title= "dinglehopper" \
org.opencontainers.image.description= "An OCR evaluation tool" \
org.opencontainers.image.source= "https://github.com/qurator-spk/dinglehopper" \
org.opencontainers.image.documentation= " https://github.com/qurator-spk/dinglehopper/blob/ ${ VCS_REF } /README.md " \
org.opencontainers.image.revision= $VCS_REF \
org.opencontainers.image.created= $BUILD_DATE \
org.opencontainers.image.base.name= ocrd/core
ENV LANG = C.UTF-8
ENV LC_ALL = C.UTF-8
# avoid HOME/.local/share (hard to predict USER here)
# so let XDG_DATA_HOME coincide with fixed system location
# (can still be overridden by derived stages)
ENV XDG_DATA_HOME /usr/local/share
# avoid the need for an extra volume for persistent resource user db
# (i.e. XDG_CONFIG_HOME/ocrd/resources.yml)
ENV XDG_CONFIG_HOME /usr/local/share/ocrd-resources
WORKDIR /build/dinglehopper
COPY . .
COPY ocrd-tool.json .
# prepackage ocrd-tool.json as ocrd-all-tool.json
RUN ocrd ocrd-tool ocrd-tool.json dump-tools > $( dirname $( ocrd bashlib filename) ) /ocrd-all-tool.json
RUN make install && rm -rf /build/dinglehopper
WORKDIR /data
VOLUME /data