Last active
August 3, 2019 20:29
-
-
Save ughitsaaron/ed0be9c1180970bb9456b611393f78d3 to your computer and use it in GitHub Desktop.
rust/arm7
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:latest | |
SHELL ["/bin/bash", "-c"] | |
# Install arm build dependencies | |
RUN apt-get update && apt-get install -y \ | |
sudo \ | |
curl \ | |
git \ | |
build-essential \ | |
gcc-arm-linux-gnueabihf && \ | |
apt-get clean | |
RUN git clone --progress --verbose https://github.com/raspberrypi/tools.git --depth=1 pitools | |
# Rust and arm targets | |
RUN curl https://sh.rustup.rs -sSf | \ | |
sh -s -- --default-toolchain stable -y && \ | |
/root/.cargo/bin/rustup update nightly && \ | |
/root/.cargo/bin/rustup target add armv7-unknown-linux-gnueabihf | |
ENV PATH=/root/.cargo/bin:$PATH | |
# Copy local directory into /home | |
WORKDIR /home | |
COPY . . |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment