Skip to content

Instantly share code, notes, and snippets.

@sidwarkd
Created February 25, 2018 06:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sidwarkd/9a612b9fa563be2d3a12b22f5ae27331 to your computer and use it in GitHub Desktop.
Save sidwarkd/9a612b9fa563be2d3a12b22f5ae27331 to your computer and use it in GitHub Desktop.
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