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-12-04 21:30:03 +08:00

31 lines
769 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-lts \
python \
python-dev \
sudo \
&& curl https://bootstrap.pypa.io/get-pip.py | python \
&& pip install rpi.gpio \
&& npm install -g --unsafe-perm 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"]