content: FROM jgehrcke/github-repo-stats-base:e87aa5891
  
  # Install GNU parallel
  RUN apt-get update && apt-get install -y -q --no-install-recommends \
      parallel && rm -rf /var/lib/apt/lists/*
  
  COPY requirements-ci.txt .
  RUN pip install -r requirements-ci.txt
  
  # Install bats for running cmdline tests. This is the image used when invoking
  # `make bats-test`.
  RUN git clone https://github.com/bats-core/bats-core.git && cd bats-core && \
      git checkout v1.10.0 && ./install.sh /usr/local
  
  RUN mkdir -p /bats-libraries
  RUN git clone https://github.com/bats-core/bats-support /bats-libraries/bats-support
  RUN git clone https://github.com/bats-core/bats-assert /bats-libraries/bats-assert
  RUN git clone https://github.com/bats-core/bats-file /bats-libraries/bats-file
  
  # check that this file exists
  RUN stat /bats-libraries/bats-assert/load.bash
  
  # Expect `bats` to work.
  RUN bats --help
  
  # Pre-create /.wdm directory and provide wide access to all unix users
  # # 220422-15:33:16.426 INFO: Trying to download new driver from https://chromedriver.storage.googleapis.com/96.0.4664.45/chromedriver_linux64.zip
  #   Traceback (most recent call last):
  # ...
  #     File "/cwd/pdf.py", line 83, in gen_pdf_bytes
  #       ChromeDriverManager().install(), options=wd_options
  # ...
  #     File "/usr/local/lib/python3.10/os.py", line 225, in makedirs
  #       mkdir(name, mode)
  #   PermissionError: [Errno 13] Permission denied: '/.wdm'
  RUN mkdir -p /.wdm && chmod ugo+rwx /.wdm
  
  # This is also where the current checkout will be mounted to.
  RUN mkdir -p /checkout
  WORKDIR /checkout
  