This commit is contained in:
Stanislaw-Golebiewski 2019-11-25 15:31:33 +01:00
parent 8daa72d14d
commit 0e08b4fc48

View File

@ -16,14 +16,12 @@ 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