Created
June 8, 2014 15:43
-
-
Save JerryPreissler/40df842eb5ac48644479 to your computer and use it in GitHub Desktop.
A Dockerfile to create an Ubuntu image with Oracle JDK und Maven already installed
This file contains 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 | |
MAINTAINER Jerry Preissler, [email protected] | |
RUN \ | |
apt-get update && \ | |
apt-get install -y software-properties-common | |
# install Oracle JDK and Maven | |
RUN \ | |
add-apt-repository -y ppa:webupd8team/java && \ | |
apt-get update && \ | |
echo debconf shared/accepted-oracle-license-v1-1 select true | debconf-set-selections && \ | |
echo debconf shared/accepted-oracle-license-v1-1 seen true | debconf-set-selections && \ | |
apt-get install -y oracle-java8-installer maven | |
RUN adduser develop | |
VOLUME ["/home/develop"] | |
CMD /bin/bash |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment