diff --git a/Dockerfile b/Dockerfile index d3958eb16f344e8da64828b85b12177385e5ddff..5dbcc0093c9e8db498a03c8532e1c3f2188790be 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,21 +10,18 @@ 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" \ - io.k8s.display-name="Spring Boot Maven 3" \ +LABEL io.k8s.description="Platform for building and running Spring Boot applications and NodeJS " \ + io.k8s.display-name="Spring Boot Maven 3 and NodeJs" \ 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 && \ + yum install -y java-$JAVA_VERSON-openjdk java-$JAVA_VERSON-openjdk-devel nodejs gcc-c++ make& & \ yum clean all RUN curl -sL https://rpm.nodesource.com/setup_8.x | bash - -RUN yum install nodejs gcc-c++ make && \ - yum clean all && npm install -f @angular/cli - 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