Skip to content

Instantly share code, notes, and snippets.

@pigri
Created September 19, 2016 19:37
Show Gist options
  • Save pigri/752b5c9883ec4f22a00416397cfc7bcf to your computer and use it in GitHub Desktop.
Save pigri/752b5c9883ec4f22a00416397cfc7bcf to your computer and use it in GitHub Desktop.
Docker in homebridge
FROM ubuntu:12.04
RUN apt-get update && \
apt-get -y dist-upgrade && \
apt-get install -y curl git make build-essential && \
apt-get install -y software-properties-common python-software-properties && \
add-apt-repository ppa:ubuntu-toolchain-r/test && \
apt-get update && \
apt-get install -y gcc-4.7 g++-4.7 && \
apt-get install -y libavahi-compat-libdnssd-dev && \
curl -sL https://deb.nodesource.com/setup_4.x | bash - && \
apt-get install -y nodejs && \
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.7 100 --slave /usr/bin/g++ g++ /usr/bin/g++-4.7 && \
npm install -g --unsafe-perm homebridge
RUN homebridge
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment