mirror of
https://github.com/qurator-spk/ocrd-galley.git
synced 2025-07-03 10:29:51 +02:00
Add container setup
This commit is contained in:
parent
8d66469621
commit
3f366339ad
4 changed files with 33 additions and 0 deletions
25
Dockerfile
Normal file
25
Dockerfile
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
FROM ubuntu:18.04
|
||||||
|
|
||||||
|
ENV LC_ALL=C.UTF-8 LANG=C.UTF-8
|
||||||
|
|
||||||
|
RUN apt-get update && \
|
||||||
|
apt-get install -y \
|
||||||
|
git \
|
||||||
|
libleptonica-dev \
|
||||||
|
libtesseract-dev \
|
||||||
|
libxml2-utils \
|
||||||
|
python3-pip \
|
||||||
|
tesseract-ocr-all \
|
||||||
|
xmlstarlet \
|
||||||
|
&& \
|
||||||
|
apt-get clean
|
||||||
|
|
||||||
|
COPY requirements.txt /tmp
|
||||||
|
RUN pip3 install --no-cache-dir -r /tmp/requirements.txt
|
||||||
|
|
||||||
|
COPY my_ocrd_workflow /usr/bin
|
||||||
|
COPY xsd /usr/bin/xsd
|
||||||
|
|
||||||
|
|
||||||
|
WORKDIR /data
|
||||||
|
CMD ["/usr/bin/my_ocrd_workflow"]
|
2
build
Executable file
2
build
Executable file
|
@ -0,0 +1,2 @@
|
||||||
|
#!/bin/sh
|
||||||
|
podman build -t my_ocrd_workflow .
|
4
requirements.txt
Normal file
4
requirements.txt
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
git+https://github.com/seuretm/ocrd_typegroups_classifier.git
|
||||||
|
ocrd_kraken
|
||||||
|
tesserocr == 2.3.1 # 2.4.0 fails with Ubuntu 18.04's tesseract
|
||||||
|
ocrd_tesserocr
|
2
run
Executable file
2
run
Executable file
|
@ -0,0 +1,2 @@
|
||||||
|
#!/bin/sh
|
||||||
|
podman run -it --mount type=bind,src="$(pwd)",target=/data --privileged=true my_ocrd_workflow
|
Loading…
Add table
Add a link
Reference in a new issue