Skip to content

Instantly share code, notes, and snippets.

@gridhead
Last active August 22, 2021 16:11
Show Gist options
  • Save gridhead/7a3459b272478cf1792c1231fc0d0a03 to your computer and use it in GitHub Desktop.
Save gridhead/7a3459b272478cf1792c1231fc0d0a03 to your computer and use it in GitHub Desktop.
GitBlit Dockerfile
FROM centos:latest
LABEL maintainer "Akashdeep Dhar <[email protected]>"
RUN ["dnf", "install", "java", "wget", "-y"]
RUN ["wget", "https://github.com/gitblit/gitblit/releases/download/v1.9.1/gitblit-1.9.1.tar.gz"]
RUN ["tar", "-xvzf", "gitblit-1.9.1.tar.gz"]
RUN ["rm", "gitblit-1.9.1.tar.gz"]
WORKDIR /gitblit-1.9.1
EXPOSE 8080 8443 9418 29418
ENTRYPOINT ["sh", "/gitblit-1.9.1/gitblit.sh"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment