I have modified my Dockerfile to maximize the cache usage, when I run docker build locally the build run as expected using the cache until the 'COPY' command.
But in bitbucket pipelines the first curl command breaks the caching and makes the build time go over 10 minutes.
ps. I am using the docker cache in bitbucket-pipelines