2016-06-11 23:18:17 +00:00
|
|
|
FROM java:8
|
2014-07-21 01:01:25 +00:00
|
|
|
|
|
|
|
MAINTAINER itzg
|
|
|
|
|
2016-06-11 23:18:17 +00:00
|
|
|
ENV GITBLIT_VERSION 1.7.1
|
2014-07-21 01:01:25 +00:00
|
|
|
|
2016-06-11 23:18:17 +00:00
|
|
|
RUN wget -qO /tmp/gitblit.tgz http://dl.bintray.com/gitblit/releases/gitblit-$GITBLIT_VERSION.tar.gz
|
2014-07-21 01:01:25 +00:00
|
|
|
|
2016-06-11 23:18:17 +00:00
|
|
|
RUN tar -C /opt -xvf /tmp/gitblit.tgz && \
|
|
|
|
rm /tmp/gitblit.tgz
|
2014-07-21 01:01:25 +00:00
|
|
|
|
|
|
|
VOLUME ["/data"]
|
|
|
|
|
|
|
|
ADD start.sh /start
|
|
|
|
|
2016-06-11 23:18:17 +00:00
|
|
|
ENV GITBLIT_PATH=/opt/gitblit-${GITBLIT_VERSION} \
|
|
|
|
GITBLIT_HTTPS_PORT=443 \
|
|
|
|
GITBLIT_HTTP_PORT=80 \
|
|
|
|
GITBLIT_BASE_FOLDER=/data \
|
|
|
|
GITBLIT_ADMIN_USER=admin \
|
|
|
|
GITBLIT_INITIAL_REPO=
|
|
|
|
WORKDIR $GITBLIT_PATH
|
2014-07-21 01:01:25 +00:00
|
|
|
|
|
|
|
EXPOSE 80 443
|
|
|
|
|
2016-06-11 23:18:17 +00:00
|
|
|
ENTRYPOINT ["/start"]
|