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

Optimize Dockerfile to Leverage Layer Caching and Improve Build Times (Backend) #66

Closed
2 tasks done
anmol2710 opened this issue Nov 18, 2024 · 5 comments
Closed
2 tasks done
Assignees
Labels
duplicate This issue or pull request already exists

Comments

@anmol2710
Copy link
Contributor

Is there an existing issue for this?

  • I have searched the existing issues

What happened?

The current Dockerfile in the project rebuilds from scratch every time there are changes in the source code, even when the dependencies or system-level packages haven't changed. This results in inefficient caching and unnecessarily long build times.

The main issues is the entire source code is copied early in the Dockerfile, which causes Docker to invalidate subsequent cached layers (e.g., dependency installation) whenever the code changes.

Record

  • I agree to follow this project's Code of Conduct
@anmol2710
Copy link
Contributor Author

@Pranav0-0Aggarwal , can i work on this issue ?

@Pranav0-0Aggarwal
Copy link
Member

sure

@Pranav0-0Aggarwal
Copy link
Member

@anmol2710 this is a duplicate issue, check #63

@Pranav0-0Aggarwal Pranav0-0Aggarwal added the duplicate This issue or pull request already exists label Nov 18, 2024
@anmol2710
Copy link
Contributor Author

@Pranav0-0Aggarwal Issue #63 is for frontend Dockerfile and this issue is for backend Dockerfile

@Pranav0-0Aggarwal
Copy link
Member

i am assigning you to the issue #63 please coordinate, with Raj, multiple issues for similar work feels useless.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants