Skip to content

Instantly share code, notes, and snippets.

@ivanursul
Last active June 3, 2016 13:41
Show Gist options
  • Save ivanursul/6f13f9e5f3c343d73db07c0903e0d684 to your computer and use it in GitHub Desktop.
Save ivanursul/6f13f9e5f3c343d73db07c0903e0d684 to your computer and use it in GitHub Desktop.
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