Docker and CI/CD · Junior · Question 17 of 75

What is .dockerignore for?

Explanation

Without it, node_modules, .git and .env are sent to the builder, which slows builds, busts the cache and may leak secrets into images via COPY . ..

Further reading

Problem with a question

Docker and CI/CD · Junior · question 17

Test yourself

Take the Docker and CI/CD · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz