Introduction
When you build a Docker image, Docker needs to know which files to include. The build context is the folder and its contents that Docker uses to find files during the build. It helps Docker copy files into the image and run commands on them.
When you want to include your app files inside a Docker image
When you need to copy configuration files into the image during build
When you want to run commands on files that are part of your project during image creation
When you want to avoid sending unnecessary files to Docker to speed up the build
When you want to organize your Dockerfile and related files in one folder