Last active
December 25, 2015 01:59
-
-
Save akirakw/6899429 to your computer and use it in GitHub Desktop.
Dockerfile for installing GitBucket
This file contains hidden or 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
# 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