Skip to content

Commit

Permalink
Add Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
zuphilip committed Dec 16, 2017
1 parent 8cfce57 commit 89e6509
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .dockerignore
@@ -0,0 +1,2 @@
OLD/
.git/
16 changes: 16 additions & 0 deletions Dockerfile
@@ -0,0 +1,16 @@
FROM ubuntu:16.04
MAINTAINER Konstantin Baierer <konstantin.baierer@gmail.com>
ENV DEBIAN_FRONTEND noninteractive
ENV PYTHONIOENCODING utf8

WORKDIR /ocropy
RUN apt-get update && \
apt-get -y install --no-install-recommends git ca-certificates wget unzip && \
git clone --depth 1 'https://github.com/kba/ocr-models-client' /ocr-models-client && \
/ocr-models-client/ocr-models download -d models 'ocropy/en-default' 'ocropy/fraktur'
COPY PACKAGES .
RUN apt-get install -y $(cat PACKAGES)
COPY . .
RUN python setup.py install && \
apt-get -y remove --purge --auto-remove git wget unzip && \
apt-get clean && rm -rf /tmp/* /var/lib/apt/lists/* /var/tmp/*

0 comments on commit 89e6509

Please sign in to comment.