blob: dd42d7f3a492c80397aad2b239fdc3bb7469657e [file] [log] [blame]
FROM gerritcodereview/gerrit:3.5.0.1-ubuntu20
ENV GERRIT_SITE /var/gerrit
COPY artifacts/plugins/ $GERRIT_SITE/plugins/
USER root
COPY artifacts/bin/ /tmp/
COPY start.sh /
RUN { [ -e /tmp/gerrit.war ] && cp /tmp/gerrit.war "$GERRIT_SITE/bin/gerrit.war" ; } || true
USER gerrit
ENTRYPOINT /start.sh