Simple tool to build your Rust project inside docker containers!
If you want to integrate a command to clone this repository to your workspace,
run the command below.
curl https://github.com/bonohub13/docker-rust-builder/blob/main/setup.sh >> ~/.bashrc
This will add rust-builder
command.
- Building (using Docker):
- Build docker image
make rebuild-linux-image
- Build Rust project
make docker-build
- Build docker image
- Building (using local):
- Building Rust project
make build
- Building Rust project
- Built binaries using
make docker-build
ormake docker
will be placed
under./bin
. - When building with Docker, it is better to use rootless-docker.
This way, the built binary belongs to the user, and there won't be any
priviledge issues.