Which one is more accurate?
Which one is more accurate?
May 9, 2023
Docker Layer Caching
Docker Layer Caching
May 23, 2023

May 16, 2023

The .dokerignore file

Similar to _.gitignore_ the .dockerignore is a file in which you can specify files/directories you want to exclude from your docker image at build time.

A good use-case example, if you're developing with _nodeJS_, is to include the _nodes_modules_ directory in .dockerignore, since it is relatively large and needs not to be copied every time you build the image as you'll run the `npm install` command in your _dockerfile_ anyway.

#.dockerignore
1 node_modules
2 .dockerignore
3 Dockerfile
The .dokerignore file
This website uses cookies to improve your experience. By using this website you agree to our Data Privacy Statement
Read more