Last active
August 2, 2019 06:40
-
-
Save mattintosh4/df651ffd9a0b4563f1d07ed733cfdb09 to your computer and use it in GitHub Desktop.
Docker Node-RED
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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