You can try the following step:
You have an option i.e.; --no-cache option:
docker build --no-cache -t u12_core -f u12_core .
In older versions of Docker you needed to pass --no-cache=true, but this is no longer the case.
I hope the above information will be helpful for you.