Dockerfile 431 Bytes
Newer Older
1
2
FROM gerritcodereview/gerrit:2.16.8-ubuntu16

3
4
5
6
7
8
9
10
11
12
13
# Add PHP for hooks

USER root

RUN apt-get update && apt-get install --yes --no-install-recommends \
 php7.0-cli php7.0-curl \
 && apt-get clean \
 && rm -rf /var/lib/apt/lists/*

USER gerrit

14
15
16
17
18
19
20
21
22
23
24

# Add assets

ADD assets/hooks /var/gerrit/hooks

ADD assets/lib /var/gerrit/lib

RUN rm -rf /var/gerrit/plugins
ADD assets/plugins /var/gerrit/plugins

ADD assets/static /var/gerrit/static