<reponame>patrick-randria/passport-reader<filename>flask/Dockerfile
FROM python:3.7-slim-stretch

RUN export DEBIAN_FRONTEND=noninteractive && apt-get update && apt-get install -y make
RUN apt-get -y install tesseract-ocr && apt-get -y install tesseract-ocr-fra
RUN apt install -y libsm6 libxext6

COPY . /flask
WORKDIR /flask

RUN mkdir /uploads

RUN pip install -r requirements.txt
CMD ["python", "app.py"]
