mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-12-14 11:23:34 +02:00
27 lines
597 B
Docker
27 lines
597 B
Docker
#
|
|
# Dockerfile for node-red
|
|
#
|
|
|
|
FROM alpine
|
|
MAINTAINER kev <noreply@easypi.info>
|
|
|
|
RUN set -xe \
|
|
&& apk add --no-cache bash \
|
|
build-base \
|
|
nodejs-lts \
|
|
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"]
|