Skip to content

Commit

Permalink
Use uv in agent image (#2780)
Browse files Browse the repository at this point in the history
Signed-off-by: Eduardo Apolinario <[email protected]>
Co-authored-by: Eduardo Apolinario <[email protected]>
  • Loading branch information
eapolinario and eapolinario authored Oct 2, 2024
1 parent 444cb9d commit 410b81e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Dockerfile.agent
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@ LABEL org.opencontainers.image.source=https://github.com/flyteorg/flytekit

ARG VERSION

RUN apt-get update && apt-get install build-essential -y
RUN apt-get update && apt-get install build-essential -y \
&& pip install uv

RUN pip install prometheus-client grpcio-health-checking
RUN pip install --no-cache-dir -U flytekit==$VERSION \
RUN uv pip install --system prometheus-client grpcio-health-checking
RUN uv pip install --system --no-cache-dir -U flytekit==$VERSION \
flytekitplugins-airflow==$VERSION \
flytekitplugins-bigquery==$VERSION \
flytekitplugins-openai==$VERSION \
Expand All @@ -24,6 +25,6 @@ CMD ["pyflyte", "serve", "agent", "--port", "8000"]
FROM agent-slim AS agent-all
ARG VERSION

RUN pip install --no-cache-dir -U \
RUN uv pip install --system --no-cache-dir -U \
flytekitplugins-mmcloud==$VERSION \
flytekitplugins-spark==$VERSION

0 comments on commit 410b81e

Please sign in to comment.