1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-04-04 22:04:25 +02:00

node-red: npm install --unsafe-perm

This commit is contained in:
kev 2016-12-04 21:30:03 +08:00
parent 600663d6f8
commit b47bbea3db
2 changed files with 6 additions and 6 deletions

View File

@ -11,9 +11,9 @@ RUN set -xe \
nodejs-lts \ nodejs-lts \
python \ python \
python-dev \ python-dev \
&& npm install -g node-red \ && npm install -g --unsafe-perm node-red \
node-red-admin \ node-red-admin \
node-red-dashboard \ node-red-dashboard \
&& apk del build-base \ && apk del build-base \
python-dev \ python-dev \
&& rm -rf /tmp/npm-* && rm -rf /tmp/npm-*

View File

@ -15,9 +15,9 @@ RUN set -xe \
sudo \ sudo \
&& curl https://bootstrap.pypa.io/get-pip.py | python \ && curl https://bootstrap.pypa.io/get-pip.py | python \
&& pip install rpi.gpio \ && pip install rpi.gpio \
&& npm install -g node-red \ && npm install -g --unsafe-perm node-red \
node-red-admin \ node-red-admin \
node-red-dashboard \ node-red-dashboard \
&& apk del build-base \ && apk del build-base \
python-dev \ python-dev \
&& rm -rf /tmp/npm-* && rm -rf /tmp/npm-*