1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-01-10 04:19:24 +02:00
dockerfiles/node-red/arm/Dockerfile

31 lines
769 B
Docker
Raw Normal View History

2015-12-04 11:49:45 +02:00
#
2016-01-08 06:16:00 +02:00
# Dockerfile for node-red-arm
2015-12-04 11:49:45 +02:00
#
2016-07-07 21:28:46 +02:00
FROM easypi/alpine-arm
MAINTAINER EasyPi Software Foundation
2015-12-04 11:49:45 +02:00
2016-01-08 08:26:58 +02:00
RUN set -xe \
2016-07-07 21:28:46 +02:00
&& apk add --no-cache bash \
2016-08-19 11:49:41 +02:00
curl \
2016-07-07 21:28:46 +02:00
build-base \
2016-08-23 03:03:49 +02:00
nodejs-lts \
2016-07-07 21:28:46 +02:00
python \
python-dev \
2016-08-19 11:49:41 +02:00
sudo \
&& curl https://bootstrap.pypa.io/get-pip.py | python \
&& pip install rpi.gpio \
2016-12-04 15:30:03 +02:00
&& npm install -g --unsafe-perm node-red \
node-red-admin \
node-red-dashboard \
2015-12-04 11:49:45 +02:00
&& apk del build-base \
2015-12-04 11:56:19 +02:00
python-dev \
2016-07-07 21:28:46 +02:00
&& rm -rf /tmp/npm-*
2015-12-04 11:49:45 +02:00
2015-12-17 18:06:44 +02:00
WORKDIR /root/.node-red
2015-12-04 11:56:19 +02:00
VOLUME /root/.node-red
2016-07-07 21:28:46 +02:00
2015-12-04 11:56:19 +02:00
EXPOSE 1880
2015-12-04 11:49:45 +02:00
CMD ["node-red"]