2016-06-11 23:18:17 +00:00
|
|
|
FROM java:8
|
2017-05-02 19:29:17 +00:00
|
|
|
|
|
|
|
LABEL maintainer "itzg"
|
2014-07-21 01:01:25 +00:00
|
|
|
|
2016-06-11 23:18:17 +00:00
|
|
|
ENV GITBLIT_VERSION 1.7.1
|
2017-05-02 19:29:17 +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
|
2017-05-02 19:29:17 +00:00
|
|
|
|
2016-06-11 23:18:17 +00:00
|
|
|
RUN tar -C /opt -xvf /tmp/gitblit.tgz && \
|
|
|
|
rm /tmp/gitblit.tgz
|
2017-05-02 19:29:17 +00:00
|
|
|
|
2014-07-21 01:01:25 +00:00
|
|
|
VOLUME ["/data"]
|
2017-05-02 19:29:17 +00:00
|
|
|
|
2014-07-21 01:01:25 +00:00
|
|
|
ADD start.sh /start
|
2017-05-02 19:29:17 +00:00
|
|
|
|
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
|
2017-05-02 19:29:17 +00:00
|
|
|
|
2014-07-21 01:01:25 +00:00
|
|
|
EXPOSE 80 443
|
2017-05-02 19:29:17 +00:00
|
|
|
|
2016-06-11 23:18:17 +00:00
|
|
|
ENTRYPOINT ["/start"]
|