2015-12-04 11:49:45 +02:00
|
|
|
#
|
2016-01-08 06:16:00 +02:00
|
|
|
# Dockerfile for node-red
|
2015-12-04 11:49:45 +02:00
|
|
|
#
|
|
|
|
|
2016-01-08 07:14:11 +02:00
|
|
|
FROM alpine
|
2015-12-04 11:49:45 +02:00
|
|
|
MAINTAINER kev <noreply@datageek.info>
|
|
|
|
|
2016-01-08 08:26:58 +02:00
|
|
|
RUN set -xe \
|
|
|
|
&& apk add -U bash \
|
|
|
|
build-base \
|
|
|
|
nodejs \
|
|
|
|
python \
|
|
|
|
python-dev \
|
2015-12-04 11:49:45 +02:00
|
|
|
&& npm install -g node-red node-red-admin \
|
|
|
|
&& apk del build-base \
|
2015-12-04 11:56:19 +02:00
|
|
|
python-dev \
|
2015-12-04 11:49:45 +02:00
|
|
|
&& rm -rf /var/cache/apk/*
|
|
|
|
|
2015-12-17 10:56:39 +02:00
|
|
|
WORKDIR /root/.node-red
|
2015-12-04 11:56:19 +02:00
|
|
|
VOLUME /root/.node-red
|
|
|
|
EXPOSE 1880
|
|
|
|
|
2015-12-04 11:49:45 +02:00
|
|
|
CMD ["node-red"]
|