Skip to content

Commit 78cb65e

Browse files
authored
Use uv in all docker images (#3137)
Signed-off-by: Eduardo Apolinario <[email protected]> Co-authored-by: Eduardo Apolinario <[email protected]>
1 parent a117bcd commit 78cb65e

File tree

4 files changed

+16
-10
lines changed

4 files changed

+16
-10
lines changed

plugins/flytekit-flyteinteractive/Dockerfile

+2-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ RUN apt-get update \
2222
&& tar -xzf /tmp/code-server/code-server-4.19.0-linux-${TARGETARCH}.tar.gz -C /tmp/code-server/ \
2323
&& wget --no-check-certificate https://open-vsx.org/api/ms-python/python/2023.20.0/file/ms-python.python-2023.20.0.vsix -P /tmp/code-server \
2424
&& wget --no-check-certificate https://open-vsx.org/api/ms-toolsai/jupyter/2023.9.100/file/ms-toolsai.jupyter-2023.9.100.vsix -P /tmp/code-server \
25-
&& pip install --no-cache-dir -U flytekitplugins-flyteinteractive==$VERSION flytekit==$VERSION \
25+
&& pip install --no-cache-dir uv \
26+
&& uv pip install --system --no-cache-dir -U flytekitplugins-flyteinteractive==$VERSION flytekit==$VERSION \
2627
&& apt-get clean autoclean \
2728
&& apt-get autoremove --yes \
2829
&& rm -rf /var/lib/{apt,dpkg,cache,log}/ \

plugins/flytekit-openai/Dockerfile.batch

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ARG PYTHON_VERSION
1+
ARG PYTHON_VERSION=3.12
22
FROM python:${PYTHON_VERSION}-slim-bookworm
33

44
WORKDIR /root
@@ -8,7 +8,8 @@ ENV PYTHONPATH /root
88

99
ARG VERSION
1010

11-
RUN pip install flytekitplugins-openai==$VERSION \
11+
RUN pip install uv --no-cache-dir \
12+
&& uv pip install --system --no-cache-dir -U flytekitplugins-openai==$VERSION \
1213
flytekit==$VERSION
1314

1415
RUN useradd -u 1000 flytekit

plugins/flytekit-spark/Dockerfile

+3-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ RUN ln -s /usr/bin/python3 /usr/bin/python
88
RUN apt-get update && apt-get install -y wget
99

1010
ARG VERSION
11-
RUN pip install --no-cache-dir flytekitplugins-spark==$VERSION flytekit==$VERSION
11+
12+
RUN pip install uv --no-cache-dir \
13+
&& uv pip install --system --no-cache-dir -U flytekitplugins-spark==$VERSION flytekit==$VERSION
1214

1315
RUN wget https://repo1.maven.org/maven2/org/apache/hadoop/hadoop-aws/3.2.2/hadoop-aws-3.2.2.jar -P /opt/spark/jars && \
1416
wget https://repo1.maven.org/maven2/com/amazonaws/aws-java-sdk-bundle/1.12.262/aws-java-sdk-bundle-1.12.262.jar -P /opt/spark/jars

plugins/flytekit-sqlalchemy/Dockerfile

+8-6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ARG PYTHON_VERSION
1+
ARG PYTHON_VERSION=3.12
22
FROM python:${PYTHON_VERSION}-slim-bookworm
33

44
WORKDIR /root
@@ -8,11 +8,13 @@ ENV PYTHONPATH /root
88

99
ARG VERSION
1010

11-
RUN pip install sqlalchemy \
12-
psycopg2-binary \
13-
pymysql \
14-
flytekitplugins-sqlalchemy==$VERSION \
15-
flytekit==$VERSION
11+
RUN pip install uv --no-cache-dir \
12+
&& uv pip install --system --no-cache-dir -U \
13+
sqlalchemy \
14+
psycopg2-binary \
15+
pymysql \
16+
flytekitplugins-sqlalchemy==$VERSION \
17+
flytekit==$VERSION
1618

1719
RUN useradd -u 1000 flytekit
1820
RUN chown flytekit: /root

0 commit comments

Comments
 (0)