If the app itself is part of the image you need to rebuild the image every time a dev wants to test their change.
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.