Debian Codegraph @

Dockerfile

raw
1 FROM python:3.13
2
3 WORKDIR /isort
4 COPY pyproject.toml uv.lock /isort/
5
6 # Install uv
7 COPY --from=ghcr.io/astral-sh/uv:0.6.0 /uv /uvx /bin/
8
9 # Setup as minimal a stub project as possible, simply to allow caching base dependencies
10 # between builds.
11 #
12 # If error is encountered in these steps, can safely be removed locally.
13 RUN mkdir -p /isort/isort
14 RUN mkdir -p /isort/tests
15 RUN touch /isort/isort/__init__.py
16 RUN touch /isort/tests/__init__.py
17 RUN touch /isort/README.md
18 COPY . /isort
19 RUN SETUPTOOLS_SCM_PRETEND_VERSION=0.0.0 uv sync --all-extras --frozen
20
21 # Install latest code for actual project
22 RUN rm -rf /isort
23
24 # Run full test suite
25 CMD /isort/scripts/test.sh