Add container setup

This commit is contained in:
Gerber, Mike 2019-06-24 16:36:19 +02:00
parent 8d66469621
commit 3f366339ad
4 changed files with 33 additions and 0 deletions

25
Dockerfile Normal file
View 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"]