blob: c2da9fa7913921a85dda36b2d41a4bc9559590e1 [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.9 --system
COPY tools /var/tools/
COPY config/* /var/config/
USER gerrit
ENTRYPOINT ["python3", "/var/tools/gerrit-initializer"]
CMD ["-s", "/var/gerrit", "-c", "/var/config/default.config.yaml", "init"]