Dockerfile 654 Bytes
Newer Older
1
FROM gerritcodereview/gerrit:3.0.3-ubuntu18
2

3
4
5
6
# Add PHP for hooks

USER root

7
8
9
RUN export DEBIAN_FRONTEND=noninteractive \
 && apt-get update \
 && apt-get install --yes --no-install-recommends php7.2-cli php7.2-curl \
10
 && apt-get clean \
11
12
 && ln -fs /usr/share/zoneinfo/Europe/Berlin /etc/localtime \
 && dpkg-reconfigure --frontend noninteractive tzdata \
13
14
15
16
 && rm -rf /var/lib/apt/lists/*

USER gerrit

17
18
19

# Add assets

20
21
22
23
RUN rm -f /var/gerrit/plugins/avatars-gravatar.jar \
 /var/gerrit/plugins/gitiles.jar \
 /var/gerrit/plugins/plugin-manager.jar \
 /var/gerrit/plugins/webhooks.jar
24

25
ADD assets/hooks /var/gerrit/hooks
26
27

ADD assets/static /var/gerrit/static