I am trying to create a docker file for tesseract-ocr ver 4.0. Following are the contents of the Docker file.
FROM ubuntu:16.04
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update && apt-get install -y software-properties- common && add-apt-repository -y ppa:alex-p/tesseract-ocr
RUN apt-get update && apt-get install -y tesseract-ocrFROM python:3.6-alpine
ADD . /App
WORKDIR /App
COPY requirements.txt ./
COPY . .
RUN pip install --no-cache-dir -r requirements.txt
I am able to build the docker image, but when i spin a container and try to run a tesseract command i get "tesseract" not found.
I am not able to figure out what is wrong. Can someone please help.