fix(docker): uv via standalone installer (#31)
All checks were successful
tests / test (push) Successful in 1m14s

This commit is contained in:
goldstein 2026-04-18 10:33:11 +00:00
commit e6fcd5fc54

View file

@ -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