Hi,
I've been experimenting with algorithms, docker and microservices. If one wants to create a microservice with languages like go and c one could compile that program to a static binary. This binary can be used to create a really small docker container that inherits from the scratch image by only adding the binary.
I would like to make a microservice using docker and numba. I haven't seen anything written about this use case yet. Can this be done without needing to have the python runtime and numpy installed in the docker container?
In an old version of the numba documentation (
http://numba.pydata.org/numba-doc/0.7/doc/pycc.html) it says the following:
"Options exist to compile to native object files instead of a shared library, to emit LLVM code or to generate a C header file with function prototypes. "
But in a more recent version of the documentation () it says:
- "AOT compilation produces a compiled extension module which does not depend on Numba: you can distribute the module on machines which do not have Numba installed (but Numpy is required)."
Is it possible to create a small binary that has everything in it, without needing python or numpy, to keep the size of the container small?
I hope somebody can shed some light on this.