MILE-OCR-API has runtime dependency on MILE-OCR-Engine and compile-time dependency on MILE-OCR-Model. Hence it requires additional steps for build and deploy as shown below.
Some of the files in MILE-OCR-Engine are big and requires Git LFS to be installed
$ curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | sudo bash
$ sudo apt-get install git-lfs
$ git lfs install
$ cd ..
$ git clone https://github.com/MILE-IISc/MILE-OCR-Engine.git
$ cd MILE-OCR-Engine/
$ docker build -t mile-ocr-engine .
$ cd ../MILE-OCR-API
$ git submodule update --init
$ git submodule update --recursive
$ git submodule foreach git pull origin master
$ docker build -t mile-ocr-api .
$ docker images
$ docker run -d --name ocr-api -p 9080:9080 -p 9443:9443 mile-ocr-api
$ docker ps
$ docker run -d --name ocr-engine --network=container:ocr-api mile-ocr-engine
Open http://localhost:9080/openapi/ui/ in your browser
$ docker stop ocr-api
$ docker rm ocr-api