Skip to content

Instantly share code, notes, and snippets.

@ughitsaaron
Last active August 3, 2019 20:29
Show Gist options
  • Save ughitsaaron/ed0be9c1180970bb9456b611393f78d3 to your computer and use it in GitHub Desktop.
Save ughitsaaron/ed0be9c1180970bb9456b611393f78d3 to your computer and use it in GitHub Desktop.
rust/arm7
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