Gitblit image based on Java image from Docker Hub
Jacek Kowalski
2017-06-27 9ec6df4302037e5506d342ff036e07de8a6f02f7
Optimize image size by combining RUN commands
1 files modified
4 ■■■■ changed files
Dockerfile 4 ●●●● patch | view | raw | blame | history
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-*