BUYN-16 Przygotowanie Docker Image API

This commit is contained in:
Stanislaw-Golebiewski 2019-11-25 17:49:59 +01:00
parent dd52665dfe
commit f7dedbe33f

View File

@ -13,11 +13,7 @@ COPY . .
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/ && \
chmod 777 /usr/share/tesseract-ocr/4.00/tessdata/pol.traineddata
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 && \