Last active
August 29, 2015 14:17
-
-
Save claudiuo/5b96e3d46f09b31ea54b to your computer and use it in GitHub Desktop.
Dockerfile for my node-red Docker image
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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