Skip to content

Dockerfile Enhancement- Multistage Docker build #990

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

Open
AkshataABhat opened this issue Apr 15, 2025 · 0 comments · Fixed by #991
Open

Dockerfile Enhancement- Multistage Docker build #990

AkshataABhat opened this issue Apr 15, 2025 · 0 comments · Fixed by #991

Comments

@AkshataABhat
Copy link

This issue aims to refactor the current Dockerfile to use a multistage build approach. The motivation for this change is to:

  1. Reduce final image size by excluding unnecessary build-time dependencies (e.g., gcc, libpython3-dev, etc.)
  2. Enhance maintainability by clearly separating build and runtime concerns
DonggeLiu pushed a commit that referenced this issue Apr 16, 2025
This issue aims to refactor the current Dockerfile to use a multistage
build approach. The motivation for this change is to:

1. Reduce final image size by excluding unnecessary build-time
dependencies (e.g., gcc, libpython3-dev, etc.)
2. Enhance maintainability by clearly separating build and runtime
concerns
```
Size of the current docker image: 3.82GB
Size of the docker image after multi-stage build: 1.06GB

```

Closes #990
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