-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #38 from slub/update-ocrdall-with-workarounds
Update ocrdall with workarounds
- Loading branch information
Showing
4 changed files
with
4 additions
and
10 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
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 |
---|---|---|
|
@@ -6,6 +6,7 @@ FROM ocrd/all:$VERSION | |
|
||
ARG VCS_REF | ||
ARG BUILD_DATE | ||
ARG VERSION | ||
|
||
MAINTAINER [email protected] | ||
LABEL maintainer="https://slub-dresden.de" | ||
|
@@ -31,16 +32,14 @@ ENV HOME=/ | |
|
||
# must mount a host-side directory for ocrd-resources | ||
VOLUME /models | ||
# ensure volume can be written by any user | ||
RUN chmod go+rwx /models | ||
# override XDG_DATA_HOME from ocrd/all (i.e. /usr/local/share) | ||
ENV XDG_DATA_HOME=/models | ||
# override TESSDATA_PREFIX from ocrd/all | ||
ENV TESSDATA_PREFIX=$XDG_DATA_HOME/ocrd-resources/ocrd-tesserocr-recognize | ||
# must mount a host-side directory for ocrd/resource.yml | ||
VOLUME /config | ||
ENV XDG_CONFIG_HOME=/config | ||
# enable caching of METS structures in processors | ||
# disable while broken, see OCR-D/core#957 | ||
#ENV OCRD_METS_CACHING=true | ||
ENV OCRD_METS_CACHING=1 | ||
|
||
# make apt run non-interactive during build | ||
ENV DEBIAN_FRONTEND noninteractive | ||
|
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