1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-14 11:23:02 +02:00
dockerfiles/node-red/arm/Dockerfile
2016-08-22 19:54:36 +08:00

31 lines
723 B
Docker

#
# Dockerfile for node-red-arm
#
FROM easypi/alpine-arm
MAINTAINER EasyPi Software Foundation
RUN set -xe \
&& apk add --no-cache bash \
curl \
build-base \
nodejs \
python \
python-dev \
sudo \
&& curl https://bootstrap.pypa.io/get-pip.py | python \
&& pip install rpi.gpio \
&& npm install -g node-red \
node-red-admin \
node-red-dashboard \
&& apk del build-base \
python-dev \
&& rm -rf /tmp/npm-*
WORKDIR /root/.node-red
VOLUME /root/.node-red
EXPOSE 1880
CMD ["node-red"]