Get Composer to Run On Docker Container [A How To Guide]

Get Composer to Run On Docker Container [A How To Guide]

I have a php docker container, that runs my app, and I need to start using Composer to install a php package. What is the best way to approach it?