> Don’t use different images, or even different tags in dev, test, staging and production environment.<p>Can anyone comment on this? For example, many node projects have a list of devDependencies that have no use in production, so we build 3 images:<p>1. A base image with basically `NODE_ENV=production npm install`<p>2. A test image from the base with `NODE_ENV=development npm install`<p>3. A production image from step 1 with the CMD set.<p>Is this part of an "anti-pattern"? I thought it was how you'd get efficiently sized images in this situation.<p>(And yes, now that I write this I realize there only needs to be 2 images, the production one, and the test image is built from that)