Replies: 1 comment 1 reply
-
Those files are embedded into binary on purpose, and I have no plans to make exception for Docker version on this, it becomes too complicated to support things and I see that there is very little benefit from such change. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently, the last layer (the birdnet-go binary) is quite large. I'd assume it is because of how these tflite models are embedded into the built binary:
Together these files take up around 70.1 MiB. Since these files are rarely changed it would be beneficial if they could be put on an individual docker layer. This means that changes to the source code itself would allow docker to reuse most of the already existing layers, only commiting a smaller layer containing the actual birdnet-go binary.
Of course, it is quite convenient to have a self-contained binary still for those who want to run it without docker. However, I do think it could be beneficial to make some changes to get better layer reuse in docker. Especially since many are running these types of systems on lower-powered devices where bandwidth and storage might be low.
Does anyone have any good input on how to proceed with moving some of these static files that are embedded in the binary out of it just for docker builds?
Beta Was this translation helpful? Give feedback.
All reactions