Dockerfile 1.0 KB

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