Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding a dockerignore file #12

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

RichardoC
Copy link

Reduces context by ignoring git directories, this will prevent docker builds getting slower and slower over time as the repo grows.
Prevents cert leakage too by ignoring them.

Previously
Sending build context to Docker daemon 8.5MB

Now
Sending build context to Docker daemon 7.175MB

@RichardoC
Copy link
Author

@alex-leonhardt mind reviewing?

@alex-leonhardt
Copy link
Owner

Hi @RichardoC ! Thanks for the PR!

I'm not sure the ssl dirs should be ignored? Dockerfile adds all files of the current dir, including the ssl dir, so that we have all required files in the build container, later that gets copied into the app container image ..

https://github.com/alex-leonhardt/k8s-mutate-webhook/blob/master/Dockerfile#L8
and
https://github.com/alex-leonhardt/k8s-mutate-webhook/blob/master/Dockerfile#L15

.. absolutely OK to ignore .git and such 👍 .

Let me know if I misunderstand something?
Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants