How to redeploy custom ui services with reference-ui?

We have made changes login page design in Auth UI, After changes i am creating new image of Auth UI with below given steps.

docker-compose pull
docker-compose run --entrypoint ./build.sh auth-ui
docker-compose build image
when i run auth-ui as stand-alone service all changes are reflected but when i configure auth-ui:latest in docker-compose.yml file of reference ui. it gets stuck at Starting OpenLmis and it does not load the login page.

Am i missing something ?, Any Help would be appreciated.