Skip to content

Commit

Permalink
chore: Use uv during Dockerfile build
Browse files Browse the repository at this point in the history
* Speed up the Dockerfile build by using uv to install all Python
  dependencies.
  • Loading branch information
matthewfeickert committed May 25, 2024
1 parent cdd404a commit aea3673
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@ RUN apt-get -qq -y update && \
rm -rf /var/lib/apt/lists/* && \
python -m venv /usr/local/venv && \
cd /code && \
python -m pip --no-cache-dir install --upgrade pip setuptools wheel && \
python -m pip --no-cache-dir install '.[xmlio,contrib]' && \
python -m pip list
python -m pip --no-cache-dir install --upgrade uv && \
uv pip install --no-cache --upgrade pip setuptools wheel && \
uv pip install --no-cache '.[xmlio,contrib]' && \
uv pip list

FROM base

Expand Down

0 comments on commit aea3673

Please sign in to comment.