Skip to content

Commit

Permalink
Fix download command
Browse files Browse the repository at this point in the history
  • Loading branch information
jonchang committed Dec 6, 2024
1 parent 90e730c commit 164cb20
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion OCR/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ RUN apt-get update && apt-get install libgl1 tesseract-ocr-eng tesseract-ocr -y

# Use larger "best" training data, rather than "fast"
# Python one-liner because we don't have curl or wget
RUN python3 -c 'from urllib.request import urlopen; print(urlopen("https://github.com/tesseract-ocr/tessdata_best/raw/refs/heads/main/eng.traineddata").read())' > /usr/share/tesseract-ocr/5/tessdata/eng.traineddata
RUN python3 -c 'from urllib.request import urlopen; open("/usr/share/tesseract-ocr/5/tessdata/eng.traineddata", "wb").write(urlopen("https://github.com/tesseract-ocr/tessdata_best/raw/refs/heads/main/eng.traineddata").read())'

RUN pip install poetry

Expand Down
2 changes: 1 addition & 1 deletion OCR/dev-dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ RUN apt-get update && apt-get install libgl1 tesseract-ocr-eng tesseract-ocr -y

# Use larger "best" training data, rather than "fast"
# Python one-liner because we don't have curl or wget
RUN python3 -c 'from urllib.request import urlopen; print(urlopen("https://github.com/tesseract-ocr/tessdata_best/raw/refs/heads/main/eng.traineddata").read())' > /usr/share/tesseract-ocr/5/tessdata/eng.traineddata
RUN python3 -c 'from urllib.request import urlopen; open("/usr/share/tesseract-ocr/5/tessdata/eng.traineddata", "wb").write(urlopen("https://github.com/tesseract-ocr/tessdata_best/raw/refs/heads/main/eng.traineddata").read())'

RUN pip install poetry

Expand Down

0 comments on commit 164cb20

Please sign in to comment.