Skip to content

refactor: Optimize Dockerfile for smaller, sustainable images#20

Open
itmagix wants to merge 1 commit intogreen-code-initiative:mainfrom
itmagix:refactor/SlimDockerfile
Open

refactor: Optimize Dockerfile for smaller, sustainable images#20
itmagix wants to merge 1 commit intogreen-code-initiative:mainfrom
itmagix:refactor/SlimDockerfile

Conversation

@itmagix
Copy link
Contributor

@itmagix itmagix commented 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 #19

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 green-code-initiative#19
@alicehaupais alicehaupais self-requested a review July 28, 2023 14:34
@alicehaupais
Copy link
Contributor

Hello Maikel,
Launching an analysis using the library Puppeteer is failing with your PR.
image

Find here the troubleshooting page of Puppeteer : https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md

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.

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

2 participants