Skip to content

Instantly share code, notes, and snippets.

@McFoggy
Created November 13, 2015 15:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save McFoggy/2c5180a219d5834e7bc7 to your computer and use it in GitHub Desktop.
Save McFoggy/2c5180a219d5834e7bc7 to your computer and use it in GitHub Desktop.
FROM java:8
MAINTAINER Matthieu Brouillard matthieu@brouillard.fr
LABEL version=3.8
ENV GITBUCKET_HOME=/var/gitbucket
ENV GITBUCKET_APP=/opt/gitbucket/webapp
RUN mkdir -p $GITBUCKET_APP
RUN mkdir -p $GITBUCKET_HOME/plugins
RUN cd $GITBUCKET_APP && wget https://github.com/takezoe/gitbucket/releases/download/3.8/gitbucket.war
RUN cd $GITBUCKET_HOME/plugins && wget https://github.com/gitbucket-plugins/gitbucket-h2-backup-plugin/releases/download/1.0/gitbucket-h2-backup-plugin.jar
VOLUME $GITBUCKET_HOME
WORKDIR $GITBUCKET_APP
EXPOSE 8080
CMD [ "/usr/bin/java", "-jar", "gitbucket.war" ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment