Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Dockerfile for a debian-based image to build particle firmware locally
# Base Image
FROM debian
# Install Dependencies
RUN ["/bin/sh","-c","\
dpkg --add-architecture i386 \
&& apt-get update \
&& apt-get install -y \
libc6:i386 \
libncurses5:i386 \
libstdc++6:i386 \
make \
libarchive-zip-perl \
xxd \
wget \
bzip2 \
&& wget --quiet https://launchpad.net/gcc-arm-embedded/5.0/5-2016-q1-update/+download/gcc-arm-none-eabi-5_3-2016q1-20160330-linux.tar.bz2 \
&& bzip2 -d gcc-arm-none-eabi-5_3-2016q1-20160330-linux.tar.bz2 \
&& tar xf gcc-arm-none-eabi-5_3-2016q1-20160330-linux.tar \
&& mv gcc-arm-none-eabi-5_3-2016q1 /usr/local/gcc-arm \
&& apt-get purge -y wget \
&& apt-get purge -y bzip2 \
&& apt autoremove -y \
&& rm gcc-arm-none-eabi-5_3-2016q1-20160330-linux.tar \
&& rm -rf /usr/local/gcc-arm/share/doc \
&& rm -rf /var/lib/apt/lists/* \
"]
ENV PATH="/usr/local/gcc-arm/bin:${PATH}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.