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

Reduce docker image size. #322

Open
demeringo opened this issue Sep 27, 2024 · 1 comment
Open

Reduce docker image size. #322

demeringo opened this issue Sep 27, 2024 · 1 comment
Labels
ci Related to continuous integration workflows enhancement New feature or request help wanted Extra attention is needed

Comments

@demeringo
Copy link
Collaborator

Problem

There may be room to optimize the size of the docker image (around 650 MB at the moment)

Solution

See if we can optimize the resulting image either by:

  • using a lighter base image
  • double checking waht we embark in the resulting image

Alternatives

Additional context or elements

@demeringo demeringo added enhancement New feature or request help wanted Extra attention is needed ci Related to continuous integration workflows labels Sep 27, 2024
@jonperron
Copy link
Contributor

jonperron commented Dec 18, 2024

@demeringo have any of you thought about making a multi-stage build https://docs.docker.com/build/building/multi-stage/ ?

Edit: it seems that it is the case https://github.com/Boavizta/boaviztapi/blob/main/Dockerfile#L21C1-L22C40

This is often a good way to reduce the image size, as well as building a lightweight os such as alpine ? Also, I see no .dockerignore file, is it expected ?

I can take a look into it, I'm used to create light containers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci Related to continuous integration workflows enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants