Skip to content

Commit

Permalink
simplify dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
bertsky committed Feb 22, 2024
1 parent f75161c commit 4236247
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,12 @@ COPY ocrd_tesserocr ./ocrd_tesserocr
COPY repo/tesserocr ./repo/tesserocr
COPY repo/tesseract ./repo/tesseract
COPY Makefile .
RUN make deps-ubuntu deps install-tesseract install-tesseract-training install-tesserocr install \
RUN make deps-ubuntu deps install install-tesseract-training \
&& rm -rf /build \
&& apt-get -y remove --auto-remove g++ libtesseract-dev make

RUN ocrd resmgr download ocrd-tesserocr-recognize Fraktur.traineddata
RUN ocrd resmgr download ocrd-tesserocr-recognize deu.traineddata
RUN ocrd resmgr download ocrd-tesserocr-recognize eng.traineddata
RUN ocrd resmgr download ocrd-tesserocr-recognize equ.traineddata
RUN ocrd resmgr download ocrd-tesserocr-recognize osd.traineddata

# as discussed in ocrd_all#378, we do not want to manage more than one resource location
# to mount for model persistence;
Expand Down

0 comments on commit 4236247

Please sign in to comment.