From 4e5c8250b5d18cfd5837b6d3d25a2fafc532a1ff Mon Sep 17 00:00:00 2001 From: Jacek Kowalski <jacek@jacek-laptop.dom.jacekk.net> Date: Mon, 11 Apr 2022 09:52:28 +0000 Subject: [PATCH] Update Gitblit to version 1.9.3 --- Dockerfile | 13 +++++++------ 1 files changed, 7 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index c57fff4..99c8a08 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,23 +1,24 @@ -FROM java:jre +FROM openjdk:8-jre MAINTAINER Jacek Kowalski <Jacek@jacekk.info> -ENV GITBLIT_VERSION 1.8.0 +ENV GITBLIT_VERSION 1.9.3 RUN apt-get update \ && apt-get dist-upgrade -y \ && apt-get install -y git-core sudo wget \ - && apt-get clean + && apt-get clean \ + && rm -Rf /var/lib/apt/lists/* # Install Gitblit WORKDIR /opt -RUN wget -O /tmp/gitblit.tar.gz http://dl.bintray.com/gitblit/releases/gitblit-${GITBLIT_VERSION}.tar.gz \ +RUN wget -O /tmp/gitblit.tar.gz "https://github.com/gitblit/gitblit/releases/download/v${GITBLIT_VERSION}/gitblit-${GITBLIT_VERSION}.tar.gz" \ && tar xzf /tmp/gitblit.tar.gz \ && rm -f /tmp/gitblit.tar.gz \ && ln -s gitblit-${GITBLIT_VERSION} gitblit \ && mv gitblit/data gitblit-data-initial \ - && mkdir gitblit-data -RUN groupadd -r -g 500 gitblit \ + && mkdir gitblit-data \ + && groupadd -r -g 500 gitblit \ && useradd -r -d /opt/gitblit-data -u 500 -g 500 gitblit \ && chown -Rf gitblit:gitblit /opt/gitblit-* -- Gitblit v1.9.1