Last active
June 3, 2016 13:41
-
-
Save ivanursul/6f13f9e5f3c343d73db07c0903e0d684 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment