mirror of
https://github.com/qurator-spk/ocrd-galley.git
synced 2025-06-09 14:49:53 +02:00
🎨 Rename boxed-* to my_ocrd_workflow-*
This commit is contained in:
parent
a820d72526
commit
73ffa01d12
8 changed files with 17 additions and 17 deletions
32
Dockerfile-ocrd_olena
Normal file
32
Dockerfile-ocrd_olena
Normal file
|
@ -0,0 +1,32 @@
|
|||
FROM my_ocrd_workflow-core
|
||||
|
||||
ENV OCRD_OLENA_VERSION 1.2.0
|
||||
|
||||
# Build ocrd_olena
|
||||
RUN apt-get update && \
|
||||
apt-get install -y \
|
||||
imagemagick \
|
||||
&& \
|
||||
apt-get clean && rm -rf /var/lib/apt/lists/*
|
||||
RUN curl -sSL --retry 3 -O https://qurator-data.de/~mike.gerber/olena_2.1-0+ocrd-git/olena-bin_2.1-0+ocrd-git_amd64.deb && \
|
||||
dpkg -i --force-depends olena-bin_2.1-0+ocrd-git_amd64.deb && \
|
||||
rm -f olena-bin_2.1-0+ocrd-git_amd64.deb && \
|
||||
apt-get update && \
|
||||
apt-get -f install -y && \
|
||||
apt-get clean && rm -rf /var/lib/apt/lists/*
|
||||
RUN curl -sSL --retry 3 -o ocrd_olena.tar.gz https://github.com/OCR-D/ocrd_olena/archive/v${OCRD_OLENA_VERSION}.tar.gz && \
|
||||
mkdir ocrd_olena && \
|
||||
tar xvz -C ocrd_olena --strip-components=1 -f ocrd_olena.tar.gz && \
|
||||
cd ocrd_olena && \
|
||||
sed -i 's/^install: deps$/install:/' Makefile && \
|
||||
pip3 install --no-cache-dir --use-feature=2020-resolver ocrd && \
|
||||
make install PREFIX=/usr/local && \
|
||||
cd .. && rm -rf ocrd_olena ocrd_olena.tar.gz
|
||||
|
||||
|
||||
# Check pip dependencies
|
||||
RUN pip3 check
|
||||
|
||||
|
||||
# Default command
|
||||
CMD ['ocrd-olena-binarize']
|
Loading…
Add table
Add a link
Reference in a new issue