From 0bed6951cf0c110e4347a0f50230a06a74de2e10 Mon Sep 17 00:00:00 2001 From: Artur G Vieira Date: Thu, 15 Nov 2018 01:56:36 -0800 Subject: [PATCH] Update Dockerfile to NodeJS version 8.11.4 Signed-off-by: Artur G Vieira --- recipes/centos_nodejs/Dockerfile | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/recipes/centos_nodejs/Dockerfile b/recipes/centos_nodejs/Dockerfile index e8304742..637486bd 100644 --- a/recipes/centos_nodejs/Dockerfile +++ b/recipes/centos_nodejs/Dockerfile @@ -16,13 +16,13 @@ EXPOSE 1337 3000 4200 5000 9000 8003 LABEL che:server:8003:ref=angular che:server:8003:protocol=http che:server:3000:ref=node-3000 che:server:3000:protocol=http che:server:9000:ref=node-9000 che:server:9000:protocol=http RUN sudo yum update -y && \ - sudo yum -y install rh-nodejs6 && \ + sudo yum -y install rh-nodejs8 && \ sudo yum -y clean all && \ - sudo ln -s /opt/rh/rh-nodejs6/root/usr/bin/node /usr/local/bin/nodejs && \ - sudo scl enable rh-nodejs6 'npm install --unsafe-perm -g gulp bower grunt grunt-cli yeoman-generator yo generator-angular generator-karma generator-webapp' && \ - cat /opt/rh/rh-nodejs6/enable >> /home/user/.bashrc + sudo ln -s /opt/rh/rh-nodejs8/root/usr/bin/node /usr/local/bin/nodejs && \ + sudo scl enable rh-nodejs8 'npm install --unsafe-perm -g gulp bower grunt grunt-cli yeoman-generator yo generator-angular generator-karma generator-webapp' && \ + cat /opt/rh/rh-nodejs8/enable >> /home/user/.bashrc -ENV PATH=/opt/rh/rh-nodejs6/root/usr/bin${PATH:+:${PATH}} -ENV LD_LIBRARY_PATH=/opt/rh/rh-nodejs6/root/usr/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} -ENV PYTHONPATH=/opt/rh/rh-nodejs6/root/usr/lib/python2.7/site-packages${PYTHONPATH:+:${PYTHONPATH}} -ENV MANPATH=/opt/rh/rh-nodejs6/root/usr/share/man:$MANPATH +ENV PATH=/opt/rh/rh-nodejs8/root/usr/bin${PATH:+:${PATH}} +ENV LD_LIBRARY_PATH=/opt/rh/rh-nodejs8/root/usr/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} +ENV PYTHONPATH=/opt/rh/rh-nodejs8/root/usr/lib/python2.7/site-packages${PYTHONPATH:+:${PYTHONPATH}} +ENV MANPATH=/opt/rh/rh-nodejs8/root/usr/share/man:$MANPATH