Blizarre / pocketgo-docker-rust

Pocketgo buildroot Docker image with Rust
GNU General Public License v3.0
1 stars 0 forks source link

Pocket GO toolchain docker image

Small Dockerfile to build a toolchain docker image for rust development on PocketGO.

Build the docker image

$ docker build -t pocketgo-rust .

The toolchain is based on a fork of the buildroot project.

I am using rustup to download and install cargo, rust and the standard library for the PocketGo target armv5te-unknown-linux-musleabi.

Create a new rust project

$ docker run -it pocketgo-rust
# cd /root
# cargo init my_project
# cargo build

You can also mount a local project inside the container using -v.