Marc Reichelt
12/25/2019, 12:12 AMubuntu
base image:
FROM ubuntu
COPY hello_world_linux64 /hello_world
ENTRYPOINT ["/hello_world"]
But 64.2MB of those is Ubuntu itself. Is there an option for the kotlinc-native compiler to statically link all libraries? Because if I build an image from scratch, like this:
FROM scratch
COPY hello_world_linux64 /hello_world
ENTRYPOINT ["/hello_world"]
this will print this error at runtime:
standard_init_linux.go:211: exec user process caused "no such file or directory"
And by the way: merry christmas / happy holidays to everyone 😉 🎄🎁Dominaezzz
12/25/2019, 1:56 AMnapperley
12/25/2019, 9:15 PMnapperley
12/25/2019, 9:18 PMMarc Reichelt
12/25/2019, 9:23 PMMarc Reichelt
12/25/2019, 9:27 PMweather_function
sample, I would think that that gets larger to due more required dependencies. I haven’t looked into it more to confirm.Dominaezzz
12/25/2019, 9:27 PM-include-binary
to include static libraries. When included this way, they automatically link all symbols when building the final binary. So that's an option on Linux.Marc Reichelt
12/25/2019, 9:57 PMMarc Reichelt
12/25/2019, 10:50 PMnapperley
10/26/2020, 1:19 AMDominaezzz
10/26/2020, 8:06 AM