DEV Community

Discussion on: Docker from development to deployment

Collapse
 
danroc profile image
Daniel da Rocha

That looks quite interesting. then later only push the production-stage image to your registry, right?

For development do you use Nginx at all?

Collapse
 
franmako profile image
Francis O. Makokha

Both stages are in the same dockerfile. And you end up with a single image. Here's the explanation from the official docker docs:

With multi-stage builds, you use multiple FROM statements in your Dockerfile. Each FROM instruction can use a different base, and each of them begins a new stage of the build. You can selectively copy artifacts from one stage to another, leaving behind everything you don’t want in the final image.

And for development, I don't use nginx. I just use the vue cli dev server. (npm run serve)