Deploying a self-contained application