Adding details on how to use .dockerignore file

Addresses #7724

Signed-off-by: Srini Brahmaroutu <srbrahma@us.ibm.com>
All references to code need `code style` applied with back-ticks. Clauses need to be separated with commas. You need to give reasons and contexts for the examples, rather than just listing them.