1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-25 16:28:40 +00: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"]