diff options
author | Tomasz Pietruszkiewicz <tomasz.pietruszkiewicz@nokia.com> | 2021-02-25 09:50:50 +0100 |
---|---|---|
committer | Tomasz Pietruszkiewicz <tomasz.pietruszkiewicz@nokia.com> | 2021-02-25 11:53:56 +0100 |
commit | 79c6068fad9da7f94c8e6ad6cbf2dc354b23034e (patch) | |
tree | f691c1742fd69b2b39fa51f4f6c9a7f985903b25 /vnfmarket-be/deployment | |
parent | 2b4a64d4423db538aaa3e41f4b7a1f85f8276cd5 (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>
Diffstat (limited to 'vnfmarket-be/deployment')
-rw-r--r-- | vnfmarket-be/deployment/docker/docker-refrepo/src/main/docker/Dockerfile | 12 |
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 && \ |