From 8daa72d14dd98cf1bd769d4041cb9020898db7ad Mon Sep 17 00:00:00 2001 From: Stanislaw-Golebiewski Date: Mon, 25 Nov 2019 15:25:57 +0100 Subject: [PATCH] --- --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 7a55e2d..0381256 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,12 +16,13 @@ WORKDIR /install/api # get Polish language train data # RUN wget -P /usr/share/tesseract-ocr/4.00/tessdata/ https://github.com/tesseract-ocr/tessdata/raw/4.00/pol.traineddata -RUN mv ./tesseract_data/pol.traineddata /usr/share/tesseract-ocr/4.00/tessdata/ +# RUN mv ./tesseract_data/pol.traineddata /usr/share/tesseract-ocr/4.00/tessdata/ RUN pip3 install pipenv_to_requirements gunicorn && \ pipenv run pipenv_to_requirements && \ pip3 install --no-cache -r requirements.txt +ENV TESSDATA_PREFIX="/install/api/tesseract_data" WORKDIR /install