Dockerfile 844 Bytes
Newer Older
1
FROM gerritcodereview/gerrit:3.0.9-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
# Add assets

19
20
21
22
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
23

Stephan Großberndt's avatar
Stephan Großberndt committed
24
25
ADD --chown=1000:1000 assets/etc /var/gerrit/etc
ADD --chown=1000:1000 assets/hooks /var/gerrit/hooks
26
ADD --chown=1000:1000 assets/plugins /var/gerrit/plugins
Stephan Großberndt's avatar
Stephan Großberndt committed
27
28
ADD --chown=1000:1000 assets/ssh /var/gerrit/.ssh
ADD --chown=1000:1000 assets/static /var/gerrit/static