Is that the same as redeploying your app to an existing container?
ImageA: ubuntu + apache + yourPhpApplication ImageB: ubuntu + apache
To deploy ImageA all you need to do is run the image. To deploy image B you need to run ImageB along with a copy of your application
Above I was describing ImageA.