What is Dockerfile.dev and how is it different from Dockerfile

I saw some repositions with Dockerfile.dev. The content is very similar to a regular Docker file.

What is the difference between the two and what is the purpose of Dockerfile.dev?

+5
source share
1 answer

Common practice is separate Dockerfiles for deployments and development systems.

You can define a docker file without default when building:

docker build -f Dockerfile.dev -t devimage . 

One image can use the compiled version of the source, and another image can mount the / src folder in the system for live updates.

+6
source

All Articles