Skip to content

Instantly share code, notes, and snippets.

@mattintosh4
Last active August 2, 2019 06:40
Show Gist options
  • Save mattintosh4/df651ffd9a0b4563f1d07ed733cfdb09 to your computer and use it in GitHub Desktop.
Save mattintosh4/df651ffd9a0b4563f1d07ed733cfdb09 to your computer and use it in GitHub Desktop.
Docker Node-RED
FROM ubuntu:bionic
MAINTAINER [email protected]
RUN apt-get -y update
RUN apt-get -y install wget xz-utils
RUN cd /root \
&& wget https://nodejs.org/dist/v10.16.0/node-v10.16.0-linux-x64.tar.xz \
&& tar xf node-v10.16.0-linux-x64.tar.xz \
&& PATH=/root/node-v10.16.0-linux-x64/bin:$PATH \
&& npm install node-red
EXPOSE 1880
CMD ["env", "PATH=/root/node-v10.16.0-linux-x64/bin:/usr/bin:/bin", "/root/node_modules/node-red/bin/node-red-pi"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment