diff --git a/Dockerfile b/Dockerfile index 8ecc39f..2642281 100644 --- a/Dockerfile +++ b/Dockerfile @@ -30,7 +30,6 @@ RUN apt-get update \ python3.12 \ python3.12-venv \ python3.12-dev \ - python3-pip \ libmagic1 \ libgl1 \ libglib2.0-0 \ @@ -40,8 +39,10 @@ RUN apt-get update \ && rm -rf /var/lib/apt/lists/* # --- uv (dependency resolver used by the project) ----------------------- -RUN python -m pip install --upgrade pip \ - && python -m pip install "uv>=0.4" +# Install via the standalone installer; avoids needing a working system pip +# (python3.12 on Ubuntu 22.04 has no `distutils`, which breaks Ubuntu pip). +RUN curl -LsSf https://astral.sh/uv/install.sh | sh \ + && ln -sf /root/.local/bin/uv /usr/local/bin/uv WORKDIR /app