Skip to content

Commit

Permalink
Dockerfile, remove ENTRYPOINT, fix dependencies, OCR-D/spec#130
Browse files Browse the repository at this point in the history
  • Loading branch information
kba committed Nov 4, 2019
1 parent 6638861 commit 1b7bd80
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
!requirements.txt
!requirements_test.txt
!LICENSE
!README.rst
!README.md

# avoid .git and __pycache__ etc:
!ocrd_tesserocr/**/*.py
Expand Down
10 changes: 5 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ ENV PYTHONIOENCODING utf8

WORKDIR /build-ocrd
COPY setup.py .
COPY README.md .
COPY requirements.txt .
COPY requirements_test.txt .
COPY ocrd_tesserocr ./ocrd_tesserocr
Expand All @@ -13,8 +14,7 @@ RUN apt-get update && \
apt-get -y install --no-install-recommends \
libtesseract-dev \
tesseract-ocr \
wget
RUN pip3 install --upgrade pip
RUN make PYTHON=python3 PIP=pip3 deps install

ENTRYPOINT ["/bin/sh", "-c"]
build-essential \
&& make deps install \
&& rm -rf /build-ocrd \
&& apt-get -y remove --auto-remove build-essential

0 comments on commit 1b7bd80

Please sign in to comment.