Stripping Ubuntu 10.04 Server down to JeOS like setup?
I am setting up a web application to run on cloud servers that will be created and destroyed programmatically via a supplied API.  For my purposes I want stripped down version of ubuntu like JeOS, to which I would be adding Node.js and some Node modules.  The server company offers the ability to create custom system images by taking an image of a running server but my initial server needs to be booted with a standard image, in this case an Ubuntu 10.04 LAMP image.  I would therefore need to strip out the unneeded packages.  What is the safe way to accomplish this?  Is there a list somewhere of what is included in JeOS or something similar so I can determine what is unsafe to remove? 
Stripping Ubuntu 10.04 Server down to JeOS like setup?
===

I am setting up a web application to run on cloud servers that will be created and destroyed programmatically via a supplied API.  For my purposes I want stripped down version of ubuntu like JeOS, to which I would be adding Node.js and some Node modules.  The server company offers the ability to create custom system images by taking an image of a running server but my initial server needs to be booted with a standard image, in this case an Ubuntu 10.04 LAMP image.  I would therefore need to strip out the unneeded packages.  What is the safe way to accomplish this?  Is there a list somewhere of what is included in JeOS or something similar so I can determine what is unsafe to remove? 