Create a gist now

Instantly share code, notes, and snippets.

@claudiuo /Dockerfile
Last active Aug 29, 2015

What would you like to do?
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