aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomasz Pietruszkiewicz <tomasz.pietruszkiewicz@nokia.com>2021-02-25 09:50:50 +0100
committerTomasz Pietruszkiewicz <tomasz.pietruszkiewicz@nokia.com>2021-02-25 11:53:56 +0100
commit79c6068fad9da7f94c8e6ad6cbf2dc354b23034e (patch)
treef691c1742fd69b2b39fa51f4f6c9a7f985903b25
parent2b4a64d4423db538aaa3e41f4b7a1f85f8276cd5 (diff)
Remove python 2.7 from the refrepo image1.6.3
Change-Id: If456b7ef60f45745405515b73b17c03d16d23b58 Issue-ID: VNFSDK-647 Signed-off-by: Tomasz Pietruszkiewicz <tomasz.pietruszkiewicz@nokia.com>
-rw-r--r--vnfmarket-be/deployment/docker/docker-refrepo/src/main/docker/Dockerfile12
1 files changed, 10 insertions, 2 deletions
diff --git a/vnfmarket-be/deployment/docker/docker-refrepo/src/main/docker/Dockerfile b/vnfmarket-be/deployment/docker/docker-refrepo/src/main/docker/Dockerfile
index 6a9eaa56..1b3d65a3 100644
--- a/vnfmarket-be/deployment/docker/docker-refrepo/src/main/docker/Dockerfile
+++ b/vnfmarket-be/deployment/docker/docker-refrepo/src/main/docker/Dockerfile
@@ -35,8 +35,6 @@ RUN apt-get update && apt-get install -y \
make \
nano \
nginx \
- nodejs \
- npm \
sudo \
unzip \
wget \
@@ -44,6 +42,16 @@ RUN apt-get update && apt-get install -y \
&& sudo mkdir -p /usr/lib/jvm/default-jvm \
&& sudo ln -s /usr/local/openjdk-11/* /usr/lib/jvm/default-jvm
+# Installing Node
+ENV NVM_DIR /usr/local/nvm
+ENV NODE_VERSION 14.16.0
+SHELL ["/bin/bash", "--login", "-i", "-c"]
+RUN mkdir -p $NVM_DIR && curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.2/install.sh | NVM_DIR=$NVM_DIR bash
+RUN source /root/.bashrc && nvm install $NODE_VERSION
+SHELL ["/bin/bash", "--login", "-c"]
+ENV NODE_PATH $NVM_DIR/v$NODE_VERSION/lib/node_modules
+ENV PATH $NVM_DIR/versions/node/v$NODE_VERSION/bin:$PATH
+
# Download and set up Tomcat
WORKDIR /service
RUN wget -q https://archive.apache.org/dist/tomcat/tomcat-8/v8.5.30/bin/apache-tomcat-8.5.30.tar.gz && \