Basic setup for Rust API project with Rocket.
$ curl https://sh.rustup.rs -sSf | sh
$ rustup default nightly
$ rustup override set nightly
$ rustup update && cargo update
The dockerized image is only 13MB
in size:
# Build the docker image
$ docker build -t alextanhongpin/rust-api .
$ docker images | grep rust
alextanhongpin/rust-api latest 8f4359bacb1c 16 hours ago 13MB