Skip to content

Instantly share code, notes, and snippets.

@akirakw
Last active December 25, 2015 01:59
Show Gist options
  • Save akirakw/6899429 to your computer and use it in GitHub Desktop.
Save akirakw/6899429 to your computer and use it in GitHub Desktop.
Dockerfile for installing GitBucket
# Dockerfile for installing GitBucket
FROM ubuntu
# Setup Java
RUN apt-get install -y python-software-properties
RUN add-apt-repository ppa:webupd8team/java
RUN apt-get update
RUN echo oracle-java7-installer shared/accepted-oracle-license-v1-1 select true | /usr/bin/debconf-set-selections
RUN apt-get install -y oracle-java7-installer
# Setup GitBucket
RUN wget https://github.com/takezoe/gitbucket/releases/download/1.6/gitbucket.war
# Expose GitBucket Port
EXPOSE 8080
# run GitBucket with embedded servlet container
ENTRYPOINT ["java", "-jar", "gitbucket.war"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment