Create a build environment, based on production

For building, disable Doctrine proxy class generation, which requires the database.