lint_imagefile raw

   1  # Copyright (c) The Bitcoin Core developers
   2  # Distributed under the MIT software license, see the accompanying
   3  # file COPYING or https://opensource.org/license/mit/.
   4  
   5  # See test/lint/README.md for usage.
   6  
   7  FROM mirror.gcr.io/ubuntu:24.04
   8  
   9  # Pin uv and ruff to minor version to avoid breaking changes
  10  # https://docs.astral.sh/uv/reference/policies/versioning/
  11  # https://docs.astral.sh/ruff/versioning/
  12  COPY --from=ghcr.io/astral-sh/uv:0.10 /uv /uvx /bin/
  13  COPY --from=ghcr.io/astral-sh/ruff:0.15 /ruff /bin/
  14  
  15  COPY ./ci/retry/retry /ci_retry
  16  COPY ./.python-version /.python-version
  17  COPY ./ci/lint/requirements.txt /ci/lint/requirements.txt
  18  COPY ./ci/lint/01_install.sh /install.sh
  19  
  20  RUN /install.sh && \
  21    rm -rf /var/lib/apt/lists/*
  22  
  23  WORKDIR /bitcoin
  24