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

Update Dockerfile to use multi-stages to reduce build time and image size #522

Open
sanG-github opened this issue Jun 25, 2024 · 0 comments

Comments

@sanG-github
Copy link
Contributor

Why

As we have already done researching the usage and already applied changes to our Dockerfile to compare the pros/cons, please take a look at this comparison file for more detailed.

There are two proposed works (POC) that you can take a look at as a reference.

Here is the visualization of the changes in the multi-stage diagram, which shows the parallel steps that can be made to reduce build time, and some copy steps to reduce the image size, we keep only the needed dependencies for the next steps 💡

image

✅ Acceptance Criteria:

  • multi-state building 👍 -> is about improving the build-time and image size 🤩
  • layer caching to GitHub action 👍 -> reduce CI/CD time
  • eliminating unused dependencies
  • verifying docker image (mainly about compiling assets)

Who Benefits?

Client projects with reduced image size and build time, less costs 🚀

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

No branches or pull requests

1 participant