execute the RUN commands as below,have did it for diffusers lib RUN python3 -m pip install <module_name>
Ex. RUN python3 -m pip install diffusers