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

Add back .git folder to dockerfile build stage #1490

Merged
merged 1 commit into from
Apr 4, 2024
Merged

Add back .git folder to dockerfile build stage #1490

merged 1 commit into from
Apr 4, 2024

Conversation

lacraig2
Copy link
Member

@lacraig2 lacraig2 commented Apr 3, 2024

Required for some context and version information.

@AndrewFasano
Copy link
Member

I'm not opposed to merging this, but would it be possible to avoid keeping the full git history around and still preserve the version number. At least on my machine the .git directory is nearly 900MB which seems like a lot to just get a version number.

@lacraig2
Copy link
Member Author

lacraig2 commented Apr 4, 2024

@AndrewFasano this change does not actually impact the size of the final panda container.

It may not even impact the size of intermediate stages given how docker stages function.

@lacraig2
Copy link
Member Author

lacraig2 commented Apr 4, 2024

Just to clarify: we're not distributing the .git folder in the final image. It's just there as we build.

@AndrewFasano AndrewFasano merged commit 8fa38f6 into dev Apr 4, 2024
8 checks passed
@AndrewFasano AndrewFasano deleted the add_git branch April 4, 2024 20:38
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