1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-11-28 09:08:50 +02:00
dockerfiles/node-red/Dockerfile
2017-01-15 00:47:11 +08:00

28 lines
637 B
Docker

#
# Dockerfile for node-red
#
FROM alpine
MAINTAINER kev <noreply@easypi.info>
RUN set -xe \
&& apk add --no-cache bash \
build-base \
ca-certificates \
nodejs \
python \
python-dev \
&& 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"]