docker-minecraft-server/gitblit/Dockerfile

27 lines
530 B
Docker
Raw Normal View History

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