This repository contains the source, patches, scripts, and bootstrap packages (Cargo and Rustc) need to compile rust on Alpine.
-
Create a docker container with Alpine
sudo docker run --name alpine_rustbuild -it alpine:3.7
-
Enter alpine_rustbuild container
sudo docker exec -it alpine_rustbuild /bin/sh
-
Inside the alpine_rustbuild docker container:
a. Modify /etc/apk/repositories to point to edge
b. apk update; apk upgrade
c. Copy the contents of this project to /root/test directory
d. as root, /root/test/build_rust.sh