Utilize .dockerignore

.dockerignore file lets you exclude files and directories from the build context, reducing the amount of data sent to the Docker daemon and protecting sensitive information.

Example .dockerignore:

.git
node_modules
Dockerfile
.dockerignore
 
Discussion
Thanks for sharing

1

Thank you for submitting this lab Shubham! Can you please share some links to useful resources where we can learn further?

1

Sure you can visit my medium were i put stories of new learning activities medium.com/@shubhamprajapati032

12

2