'Cache error using yarn build with dockerfile and bitbucket

I'm tring to build my app using the docker file but i have this error message :

error Yarn hasn't been able to find a cache folder it can use

How can i solve it ?

Thank you



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source