forked from flyteorg/flytekit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.agent
29 lines (22 loc) · 845 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
FROM python:3.10-slim-bookworm as agent-slim
MAINTAINER 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
RUN pip install prometheus-client grpcio-health-checking
RUN pip install --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 pip install --no-cache-dir -U \
flytekitplugins-mmcloud==$VERSION \
flytekitplugins-spark==$VERSION