Docker - add packages

Hi, how do you add new packages (jar) to the image. I tried to include it through the docker terminal and it generates the message that it was installed but when I run the code it says that the class was not found.
thanks!

command: docker pull jupyter/pyspark-notebook
spark-shell --packages com.crealytics:spark-excel_2.12:3.2.2_0.18.0

can someone help me?