Skip to content
Snippets Groups Projects
Commit 5ce89df4 authored by Thomas  MENARD's avatar Thomas MENARD
Browse files

Fixing Dockerfile for nodejs

parent 1c6a050e
No related branches found
No related tags found
No related merge requests found
Pipeline #
...@@ -10,18 +10,20 @@ EXPOSE 8080 ...@@ -10,18 +10,20 @@ EXPOSE 8080
ENV JAVA_VERSON 1.8.0 ENV JAVA_VERSON 1.8.0
ENV MAVEN_VERSION 3.3.9 ENV MAVEN_VERSION 3.3.9
LABEL io.k8s.description="Platform for building and running Spring Boot applications 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 Maven 3 and NodeJs" \ io.k8s.display-name="Spring Boot Angular CLI Maven 3" \
io.openshift.expose-services="8080:http" \ io.openshift.expose-services="8080:http" \
io.openshift.tags="builder,java,java8,maven,maven3,springboot" io.openshift.tags="builder,java,java8,maven,maven3,springboot"
RUN yum update -y && \ RUN yum update -y && \
yum install -y curl epel-release && \ 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 yum clean all
RUN curl -sL https://rpm.nodesource.com/setup_8.x | bash - 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 \ 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 \ && mv /usr/share/apache-maven-$MAVEN_VERSION /usr/share/maven \
&& ln -s /usr/share/maven/bin/mvn /usr/bin/mvn && ln -s /usr/share/maven/bin/mvn /usr/bin/mvn
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment