2 ms·
/self-plug/ If you are looking for something that works, today: There is rust-musl-builder: https://hub.docker.com/r/ekidd/rust-musl-builder/ https://hub.docke
by csomar 5y ago
/self-plug/
If you are looking for something that works, today: There is rust-musl-builder: https://hub.docker.com/r/ekidd/rust-musl-builder/ https://hub.docker.com/r/ekidd/rust-musl-builder/
While I didn't make rust-musl-builder, I make and (though a bit busy lately) maintain rust-starter (https://github.com/rust-starter/rust-starter https://github.com/rust-starter/rust-starter)
Look inside the docker directory, and in the Just file. You can generate an alpine linux docker image/container that has only your program and any dependencies statically linked.
This should, in theory, run your application in any cloud or linux server that has Docker support. Your image should also be very small (a few dozen megabytes at most).