Running Strapi with custom provider on docker

Hi! I have a Strapi v4 project that I want to run using Docker.
Everything works fine until I add my custom provider. I have this provider in order to add some extra functionality to the media library upload.

I followed the documentation and it worked fine running the project locally but when I try to build with Docker I get the following error message:

error Package "strapi-provider-upload-aws" refers to a non-existing file '"/opt/providers/strapi-provider-upload-aws"'.

Does anyone know why this might be happening?

Thanks in advance!