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

Update Dockerfile

parent 6995e718
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment