From: fonsecaj Date: Wed, 3 Feb 2021 10:27:58 +0000 (+0000) Subject: Fixes Bug 1429: Add a different way to install nodejs X-Git-Tag: v9.1.0~11 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F49%2F10249%2F1;p=osm%2Fdevops.git Fixes Bug 1429: Add a different way to install nodejs Change-Id: Ica1150cb1f85e9706d2259904fd5ddc483b48754 Signed-off-by: fonsecaj (cherry picked from commit 988b7868af92877714dab49ff9d877f55569d39e) --- diff --git a/docker/light-ui/Dockerfile b/docker/light-ui/Dockerfile index d855aae0..eee94167 100644 --- a/docker/light-ui/Dockerfile +++ b/docker/light-ui/Dockerfile @@ -19,6 +19,7 @@ FROM ubuntu:18.04 RUN apt-get update \ && DEBIAN_FRONTEND=noninteractive apt-get install -y curl \ software-properties-common \ + apt-transport-https \ git \ python-pip \ nginx \ @@ -27,7 +28,14 @@ RUN apt-get update \ mysql-client \ libssl-dev \ apt-utils \ - && DEBIAN_FRONTEND=noninteractive apt-get install -y npm + && curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add - \ + && echo "deb https://deb.nodesource.com/node_10.x bionic main" | tee -a /etc/apt/sources.list.d/nodesource.list \ + && echo "deb-src https://deb.nodesource.com/node_10.x bionic main" | tee -a /etc/apt/sources.list.d/nodesource.list \ + && apt-get update \ + && DEBIAN_FRONTEND=noninteractive apt-get install -y nodejs + +RUN node -v +RUN npm -v RUN echo "daemon off;" >> /etc/nginx/nginx.conf