Replies: 2 comments
-
Polite bump to check if Github discussions are going to be used or if general community chat is happening somewhere else. |
Beta Was this translation helpful? Give feedback.
-
Hi @nomandera, sorry for the delayed reply - I wasn't checking here and I've had some time off. I agree with you that Photonix is quite chunky and we should do more to slim it down. I actually was a lot bigger (if you can believe that). I did some work in October 2020 which you can read more about here: https://photonix.org/blog/face-recognition-docker-multi-stage-builds-js/ . Basically it involved using multi-stage builds, removing parts of Python modules that weren't being used, excluding all the Node.js stuff. Unfortunately that means most of the low-hanging fruit is gone already. There are still things we can do though. Most of the space is now taken up by Python libraries (notably Tensorflow and OpenCV). Here are the top packages (above 5MB):
I think where we go from here are a few possibilities:
I'd be happy to listen to other people's views on these options or take new suggestions. |
Beta Was this translation helpful? Give feedback.
-
Photonix is now the largest container I deploy coming in at a 1.23 GB
Adding in the the helpers
That is a whopping 1.6GB and considering it excludes cache, models and postgress database which are volume mounted and would add another 0.8GB we are getting into
chonky boi
territory.Whats our thoughts on this?
Beta Was this translation helpful? Give feedback.
All reactions