blob: 1cfa326242bbe919a213d275acdfa75e7d620a97 [file] [log] [blame]
FROM gerrit-base:latest
USER root
COPY dependencies/* /var/tools/
WORKDIR /var/tools
RUN apk update && \
apk add --no-cache \
python3 && \
python3 -m ensurepip && \
rm -r /usr/lib/python*/ensurepip && \
pip3 install --no-cache --upgrade pip setuptools wheel pipenv && \
pipenv install --python 3.7.3 --system
COPY tools/* /var/tools/
COPY config/* /var/config/
USER gerrit
ENTRYPOINT ["/var/tools/gerrit_init.py", "-s", "/var/gerrit"]
CMD ["-c", "/var/config/default.config.yaml"]