BuyAndKnow/Dockerfile
Stanislaw-Golebiewski b75abf6935 Django init setup
2019-12-08 22:11:51 +01:00

26 lines
434 B
Docker

FROM python:3.7
RUN apt-get update \
&& apt-get -y install \
tesseract-ocr \
tesseract-ocr-jpn \
&& apt-get clean
WORKDIR /install
COPY ./bk_api .
RUN mv ./bk_api/ocr_module/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
# WORKDIR /install