Skip to content

Instantly share code, notes, and snippets.

@JerryPreissler
Created June 8, 2014 15:43
Show Gist options
  • Save JerryPreissler/40df842eb5ac48644479 to your computer and use it in GitHub Desktop.
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
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