Homemade cold compress ..help

DR said to massage my baby’s leg with cold compress. Can I use frozen veggies or what?

Also, on bare skin? Seems harsh.

Thank you .