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

[REFACTOR] Dockerfile to produce a leaner and more sustainable image #19

Open
itmagix opened this issue Jul 28, 2023 · 1 comment · May be fixed by #20
Open

[REFACTOR] Dockerfile to produce a leaner and more sustainable image #19

itmagix opened this issue Jul 28, 2023 · 1 comment · May be fixed by #20

Comments

@itmagix
Copy link
Contributor

itmagix commented Jul 28, 2023

The current Dockerfile produces an image that is around 1,4GB. To refactor the Dockerfile using multistages and setup the layers more efficient an image can be build that is around 50% smaller.

@itmagix
Copy link
Contributor Author

itmagix commented Jul 28, 2023

I will pick this up.

@itmagix itmagix changed the title Refactor Dockerfile to produce a leaner and more sustainable image [REFACTOR] Dockerfile to produce a leaner and more sustainable image Jul 28, 2023
itmagix added a commit to itmagix/EcoSonar that referenced this issue Jul 28, 2023
Summary:
- Optimize dependencies installation order
- Utilize multi-stage builds
- Remove unnecessary files and packages

Details:
- Rearrange Dockerfile to install essential dependencies first, reducing
  layers and image size.
- Implement multi-stage builds to create a separate build environment
  and reduce the final image size.

Fixes Accenture#19
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 a pull request may close this issue.

1 participant