be a cradle made from wood. I do not advise using spray foam in those cans. Its messy and goes everywhere and is so expanding that it can put undo pressures on framing.
Build a 2x4 framing area, might even use PT wood. set your fall, and you will have a good future with that.