Advertisement
Guest User

Untitled

a guest
May 26th, 2016
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. FROM ubuntu:14.04
  2. MAINTAINER javacodegeeks
  3.  
  4. RUN apt-get update && apt-get install -y python-software-properties software-properties-common
  5. RUN add-apt-repository ppa:webupd8team/java
  6.  
  7. RUN echo "oracle-java8-installer shared/accepted-oracle-license-v1-1 boolean true" | debconf-set-selections
  8.  
  9. RUN apt-get update && apt-get install -y oracle-java8-installer maven
  10.  
  11. ADD . /usr/local/helloworld
  12. RUN cd /usr/local/helloworld && mvn install
  13. CMD ["java", "-cp", "/usr/local/helloworld/target/helloworld-1.0.jar", "HelloWorld"]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement