diff options
-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 && \ |