From 5ce89df4040e37c3c73df28968a0e7a5c857ebed Mon Sep 17 00:00:00 2001 From: Thomas MENARD <thomas.menard@pasteur.fr> Date: Fri, 13 Apr 2018 15:59:58 +0200 Subject: [PATCH] Fixing Dockerfile for nodejs --- Dockerfile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 90a19e3..140d959 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,18 +10,20 @@ EXPOSE 8080 ENV JAVA_VERSON 1.8.0 ENV MAVEN_VERSION 3.3.9 -LABEL io.k8s.description="Platform for building and running Spring Boot applications and NodeJS " \ - io.k8s.display-name="Spring Boot Maven 3 and NodeJs" \ +LABEL io.k8s.description="Platform for building and running Spring Boot applications and NodeJS for Angular CLI " \ + io.k8s.display-name="Spring Boot Angular CLI Maven 3" \ io.openshift.expose-services="8080:http" \ io.openshift.tags="builder,java,java8,maven,maven3,springboot" RUN yum update -y && \ yum install -y curl epel-release && \ - yum install -y java-$JAVA_VERSON-openjdk java-$JAVA_VERSON-openjdk-devel nodejs gcc-c++ make && \ + yum install -y java-$JAVA_VERSON-openjdk java-$JAVA_VERSON-openjdk-devel gcc-c++ make && \ yum clean all RUN curl -sL https://rpm.nodesource.com/setup_8.x | bash - +RUN yum remove -y nodejs npm && yum install -y nodejs && yum clean all + RUN curl -fsSL https://archive.apache.org/dist/maven/maven-3/$MAVEN_VERSION/binaries/apache-maven-$MAVEN_VERSION-bin.tar.gz | tar xzf - -C /usr/share \ && mv /usr/share/apache-maven-$MAVEN_VERSION /usr/share/maven \ && ln -s /usr/share/maven/bin/mvn /usr/bin/mvn -- GitLab