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

Docker Image includes .git folder #2876

Open
ytausch opened this issue Jul 29, 2024 · 3 comments
Open

Docker Image includes .git folder #2876

ytausch opened this issue Jul 29, 2024 · 3 comments

Comments

@ytausch
Copy link
Contributor

ytausch commented Jul 29, 2024

Our Docker image currently contains a .git folder, which is not needed in the image. Probably there are even more things towards a minimal image, which will also be faster to build.

@beckermr
Copy link
Contributor

How much space is the .git folder? My guess is that there are bigger things to do than that?

@ytausch
Copy link
Contributor Author

ytausch commented Aug 13, 2024

Yes, probably. I just wanted to point out the git folder because it came to my attention as something that should clearly not be in the image. The git folder also contains a git token provided by GitHub which, I confirmed, has no security relevance for us.

@jakirkham
Copy link
Contributor

Should be easy to add to .dockerignore

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

No branches or pull requests

3 participants