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 | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 4fefcbc..b641acc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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