Skip to content

Instantly share code, notes, and snippets.

@supaket
Created October 19, 2014 09:36
Show Gist options
  • Save supaket/e424c6c7fca4af54e808 to your computer and use it in GitHub Desktop.
Save supaket/e424c6c7fca4af54e808 to your computer and use it in GitHub Desktop.
FROM komljen/jdk6-oracle
RUN wget -q -O - http://pkg.jenkins-ci.org/debian/jenkins-ci.org.key | apt-key add -
RUN echo "deb http://pkg.jenkins-ci.org/debian binary/" > /etc/apt/sources.list.d/jenkins.list
RUN apt-get -qq update
RUN apt-get -qqy install jenkins
VOLUME ["/root/.jenkins"]
EXPOSE 8080
RUN rm /usr/sbin/policy-rc.d
CMD ["/usr/bin/java", "-jar", "/usr/share/jenkins/jenkins.war", "--webroot=/root/.jenkins/web"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment