Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- FROM ubuntu:14.04
- MAINTAINER javacodegeeks
- RUN apt-get update && apt-get install -y python-software-properties software-properties-common
- RUN add-apt-repository ppa:webupd8team/java
- RUN echo "oracle-java8-installer shared/accepted-oracle-license-v1-1 boolean true" | debconf-set-selections
- RUN apt-get update && apt-get install -y oracle-java8-installer maven
- ADD . /usr/local/helloworld
- RUN cd /usr/local/helloworld && mvn install
- CMD ["java", "-cp", "/usr/local/helloworld/target/helloworld-1.0.jar", "HelloWorld"]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement