I have build a Docker image from a Docker file using the below command.
$ docker build -t u12_core -f u12_core .
When I am trying to rebuild it
With docker-compose try docker-compose up -d --build --force-recreate
docker-compose up -d --build --force-recreate