You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Analyzed the image. Looks like we have lots of unnecessary dependencies for runtime which we could remove or use multi stage build to copy only the needed files.
Is there any reason why we don't use alpine images, they are a lot smaller?
We were previously using alpine, but moved away from it to use the current base image.
IIRC there were some dependencies in the alpine image which broke InvenTree for a while so we switched over. Also some articles I read at the time seemed to indicate that alpine was not the best choice - ref #3029
Regarding multi-stage builds - this looks like a good idea. Do you want to take a look at this?
Sorry forgot to answer here. Yeah, I can try it, but don't expect any activity in the next weeks, won't have time for it. So if anybody else want to tackle this, go ahead.
Activity
wolflu05 commentedon Jun 3, 2023
Analyzed the image. Looks like we have lots of unnecessary dependencies for runtime which we could remove or use multi stage build to copy only the needed files.
Is there any reason why we don't use alpine images, they are a lot smaller?
SchrodingersGat commentedon Jun 3, 2023
We were previously using alpine, but moved away from it to use the current base image.
IIRC there were some dependencies in the alpine image which broke InvenTree for a while so we switched over. Also some articles I read at the time seemed to indicate that alpine was not the best choice - ref #3029
Regarding multi-stage builds - this looks like a good idea. Do you want to take a look at this?
SchrodingersGat commentedon Jun 5, 2023
@wolflu05 did you want to take a crack at this one?
wolflu05 commentedon Jun 5, 2023
Sorry forgot to answer here. Yeah, I can try it, but don't expect any activity in the next weeks, won't have time for it. So if anybody else want to tackle this, go ahead.