From 9ec6df4302037e5506d342ff036e07de8a6f02f7 Mon Sep 17 00:00:00 2001
From: Jacek Kowalski <Jacek@jacekk.info>
Date: Tue, 27 Jun 2017 19:36:17 +0000
Subject: [PATCH] Optimize image size by combining RUN commands

---
 Dockerfile |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/Dockerfile b/Dockerfile
index 145b47b..b641acc 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,7 +1,7 @@
-FROM java:jre
+FROM openjdk:jre
 MAINTAINER Jacek Kowalski <Jacek@jacekk.info>
 
-ENV GITBLIT_VERSION 1.7.1
+ENV GITBLIT_VERSION 1.8.0
 
 RUN apt-get update \
 	&& apt-get dist-upgrade -y \
@@ -16,8 +16,8 @@
 	&& 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