forked from flyteorg/flytekit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.agent
30 lines (23 loc) · 951 Bytes
/
Dockerfile.agent
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
FROM python:3.10-slim-bookworm AS agent-slim
LABEL org.opencontainers.image.authors="Flyte Team <users@flyte.org>"
LABEL org.opencontainers.image.source=https://github.com/flyteorg/flytekit
ARG VERSION
RUN apt-get update && apt-get install build-essential -y \
&& pip install uv
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 \
flytekitplugins-snowflake==$VERSION \
flytekitplugins-awssagemaker==$VERSION \
&& apt-get clean autoclean \
&& apt-get autoremove --yes \
&& rm -rf /var/lib/{apt,dpkg,cache,log}/ \
&& :
CMD ["pyflyte", "serve", "agent", "--port", "8000"]
FROM agent-slim AS agent-all
ARG VERSION
RUN uv pip install --system --no-cache-dir -U \
flytekitplugins-mmcloud==$VERSION \
flytekitplugins-spark==$VERSION