###################### ## Dockerfile to build container images consisting of Node.js and nginx environment # Based on Ubuntu ##### # Set the base image to Ubuntu FROM ubuntu # File Author / Maintainer # MAINTAINER name Chunteng Xiao RUN apt-get clean RUN apt-get update RUN apt-get -f install -y tomcat curl unzip default-jdk RUN curl --insecure -o ./sonarscanner.zip -L https://sonarsource.bintray.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-3.2.0.1227-linux.zip RUN unzip sonarscanner.zip RUN rm sonarscanner.zip ENV SONAR_RUNNER_HOME=/sonar-scanner-3.2.0.1227-linux ENV PATH $PATH:/sonar-scanner-3.2.0.1227-linux/bin RUN wget http://www-us.apache.org/dist/tomcat/tomcat-9/v9.0.10/bin/apache-tomcat-9.0.10.tar.gz RUN tar xzf apache-tomcat-9.0.10.tar.gz RUN mv apache-tomcat-9.0.10 apache-tomcat9 ENV CATALINA_HOME=/usr/local/apache-tomcat9 ENV JAVA_HOME=/usr/lib/jvm/java-8-oracle ENV JRE_HOME=/usr/lib/jvm/java-8-oracle/jre COPY sonar-runner.properties ./sonar-scanner-3.2.0.1227-linux/conf/sonar-scanner.properties EXPOSE 84