Skip to content

Commit

Permalink
🐳 Use uv to install dependencies in docker build
Browse files Browse the repository at this point in the history
Should be a lot faster, see https://github.com/astral-sh/uv
  • Loading branch information
sergei-maertens committed Apr 8, 2024
1 parent 046c340 commit 9d6bcc1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ RUN apt-get update && apt-get upgrade -y && apt-get install -y --no-install-reco

WORKDIR /app

# Ensure we use the latest version of pip
RUN pip install pip -U
# Use uv to install dependencies
RUN pip install uv -U
COPY ./requirements /app/requirements

ARG TARGET_ENVIRONMENT=production
RUN pip install -r requirements/${TARGET_ENVIRONMENT}.txt
RUN uv pip install -r requirements/${TARGET_ENVIRONMENT}.txt

# Apply patches of third party libraries
COPY ./patches /tmp/patches
Expand Down

0 comments on commit 9d6bcc1

Please sign in to comment.