@kevin try `cargo build --release`. You can also try building your app inside an alpine container with static linking to link against musl for even smaller binaries.
@fin_ger that's almost what I've been trying to do yesterday.
I'm using rustlang/rust:nightly as a build container and then copy the compiled binary into a alpine container but of course it doesn't run because it's not compiled properly.
I don't know how to configure the build properly and I couldn't find docs yesterday - probably because I don't know what I should search for :D "static linking" is something I'll look into now, thanks!
@fin_ger thanks! That's exactly what I was looking for. I somehow didn't think about "just" installing rust and cargo in an alpine container :D
@kevin Thank the alpine team for providing rust tools in their awesome distro! Without the alpine team musl support for rust would be light years away ;) And with this statically linking for rust...
Server run by the main developers of the project It is not focused on any particular niche interest - everyone is welcome as long as you follow our code of conduct!