File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -28,8 +28,13 @@ COPY pyproject.toml /app/
2828RUN mkdir -p /app/dimos
2929RUN touch /app/dimos/__init__.py
3030
31- # Install dependencies
32- RUN --mount=type=cache,target=/root/.cache/pip pip install .[dev]
31+ # Install UV for fast Python package management
32+ ENV UV_SYSTEM_PYTHON=1
33+ RUN curl -LsSf https://astral.sh/uv/install.sh | sh
34+ ENV PATH="/root/.local/bin:$PATH"
35+
36+ # Install dependencies with UV (10-100x faster than pip)
37+ RUN uv pip install .[dev]
3338
3439COPY . /app/
3540
Original file line number Diff line number Diff line change @@ -37,13 +37,19 @@ RUN apt-get install -y \
3737# Fix distutils-installed packages that block pip upgrades
3838RUN apt-get purge -y python3-blinker python3-sympy python3-oauthlib || true
3939
40+ # Install UV for fast Python package management
41+ ENV UV_SYSTEM_PYTHON=1
42+ RUN curl -LsSf https://astral.sh/uv/install.sh | sh
43+ ENV PATH="/root/.local/bin:$PATH"
44+
4045WORKDIR /app
4146
4247COPY pyproject.toml /app/
4348RUN mkdir -p /app/dimos
4449RUN touch /app/dimos/__init__.py
4550
46- # Install dependencies
47- RUN --mount=type=cache,target=/root/.cache/pip bash -c "pip install --upgrade 'pip>=24' 'setuptools>=70' 'wheel' 'packaging>=24' && pip install '.[cpu]'"
51+ # Install dependencies with UV (10-100x faster than pip)
52+ RUN uv pip install --upgrade 'pip>=24' 'setuptools>=70' 'wheel' 'packaging>=24' && \
53+ uv pip install '.[cpu]'
4854
4955COPY . /app/
You can’t perform that action at this time.
0 commit comments