/docker-rust-builder

Docker image to build your Rust project!

Primary LanguageMakefileGNU General Public License v2.0GPL-2.0

Docker Rust Builder

Simple tool to build your Rust project inside docker containers!

Integration

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.

How to use

  • Building (using Docker):
    1. Build docker image
      make rebuild-linux-image
    2. Build Rust project
      make docker-build
  • Building (using local):
    1. Building Rust project
      make build

Notice

  • Built binaries using make docker-build or make 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.