1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-01-22 05:09:09 +02:00
dockerfiles/node-red/Dockerfile

26 lines
508 B
Docker
Raw Normal View History

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