mirror of
https://github.com/qurator-spk/ocrd-galley.git
synced 2025-06-09 22:59:53 +02:00
✨ Move processors into their own Docker container
This commit is contained in:
parent
894cbeee32
commit
02eae7b6fa
11 changed files with 208 additions and 122 deletions
24
Dockerfile-boxed-ocrd_calamari
Normal file
24
Dockerfile-boxed-ocrd_calamari
Normal file
|
@ -0,0 +1,24 @@
|
|||
FROM boxed-base
|
||||
|
||||
|
||||
# Build pip installable stuff
|
||||
RUN pip3 install --no-cache-dir \
|
||||
# Resolve conflicts early:
|
||||
'tensorflow-gpu == 1.15.*' \
|
||||
'calamari-ocr == 0.3.5' \
|
||||
# Now the real stuff:
|
||||
'ocrd_calamari >= 0.0.7'
|
||||
|
||||
|
||||
# Copy OCR models
|
||||
RUN mkdir -p /var/lib/calamari-models
|
||||
COPY data/calamari-models/GT4HistOCR /var/lib/calamari-models/GT4HistOCR
|
||||
|
||||
|
||||
|
||||
# Check pip dependencies
|
||||
RUN pip3 check
|
||||
|
||||
|
||||
# Default command
|
||||
CMD ["ocrd-calamari-recognize"]
|
Loading…
Add table
Add a link
Reference in a new issue