Skip to content

Instantly share code, notes, and snippets.

@claudiuo
Last active August 29, 2015 14:17
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 claudiuo/5b96e3d46f09b31ea54b to your computer and use it in GitHub Desktop.
Save claudiuo/5b96e3d46f09b31ea54b to your computer and use it in GitHub Desktop.
Dockerfile for my node-red Docker image
# base image
FROM resin/rpi-raspbian:wheezy
MAINTAINER Claudiu Oprea <claudiuo@gmail.com>
# install node.js
ADD http://node-arm.herokuapp.com/node_0.10.36_armhf.deb .
RUN dpkg -i node_0.10.36_armhf.deb
RUN rm -f node_0.10.36_armhf.deb
RUN apt-get update && apt-get install -y build-essential python --no-install-recommends
#RUN apt-get install -y python-dev python-pip --no-install-recommends
#RUN pip install rpi.gpio
#RUN apt-get install -y sudo
# install node-red
RUN npm install -g node-red
# expose port
EXPOSE 1880
# setup a volume for node-red user data
VOLUME /data
# start node-red command
CMD /usr/local/bin/node-red-pi --max-old-space-size=128 -u /data/.node-red -v
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment