porter icon indicating copy to clipboard operation
porter copied to clipboard

Docs: Section on .dockerignore utility

Open vdice opened this issue 5 years ago • 3 comments

We should add a page or section mentioning the utility of creating a .dockerignore file in a bundle directory. For non-trivial bundles, adding files/dirs to the .dockerignore can significantly reduce the size of the generated installer image.

cc @squillace

vdice avatar Sep 14 '20 16:09 vdice

ooh yeah! We have a .dockerignore generated during porter create but we don't document anywhere the why/how.

carolynvs avatar Oct 15 '20 21:10 carolynvs

tell me where I should write something up, as #960 taught me what to say

squillace avatar Oct 15 '20 21:10 squillace

Right now we have a page for https://porter.sh/custom-dockerfile/ that shows up under "Author Bundles" in the left hand nav. Let's do the same for the dockerignore.

Take a look at these for an example of how to make the new page and link to it:

  • https://github.com/getporter/porter/blob/main/docs/content/custom-dockerfile.md
  • https://github.com/getporter/porter/blob/1f32693b10f783f299c12290b9243eade91966d3/docs/config.toml#L141-L146

carolynvs avatar Oct 15 '20 22:10 carolynvs