Skip to content

Commit 17066db

Browse files
committed
install UV via COPY
1 parent 1032d56 commit 17066db

File tree

21 files changed

+51
-71
lines changed

21 files changed

+51
-71
lines changed

packages/postgres-database/docker/Dockerfile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,8 @@ RUN apt-get update \
2222
&& apt-get clean \
2323
&& rm -rf /var/lib/apt/lists/*
2424

25-
# NOTE: install https://github.com/astral-sh/uv ultra-fast rust-based pip replacement
26-
RUN --mount=type=cache,mode=0755,target=/root/.cache/pip \
27-
pip install uv~=0.2
25+
# install UV https://docs.astral.sh/uv/guides/integration/docker/#installing-uv
26+
COPY --from=ghcr.io/astral-sh/uv:0.4.24 /uv /uvx /bin/
2827

2928
# NOTE: python virtualenv is used here such that installed packages may be moved to production image easily by copying the venv
3029
RUN uv venv "${VIRTUAL_ENV}"

packages/service-integration/Dockerfile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,8 @@ RUN --mount=type=cache,target=/var/cache/apt,mode=0755,sharing=private \
5555
&& apt-get install -y --no-install-recommends \
5656
build-essential
5757

58-
# NOTE: install https://github.com/astral-sh/uv ultra-fast rust-based pip replacement
59-
RUN --mount=type=cache,mode=0755,target=/root/.cache/pip \
60-
pip install uv~=0.2
58+
# install UV https://docs.astral.sh/uv/guides/integration/docker/#installing-uv
59+
COPY --from=ghcr.io/astral-sh/uv:0.4.24 /uv /uvx /bin/
6160

6261
# NOTE: python virtualenv is used here such that installed
6362
# packages may be moved to production image easily by copying the venv

requirements/tools/Dockerfile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,8 @@ RUN --mount=type=cache,target=/var/cache/apt,mode=0755,sharing=private \
2424
&& apt-get clean -y
2525

2626

27-
# NOTE: install https://github.com/astral-sh/uv ultra-fast rust-based pip replacement
28-
RUN --mount=type=cache,mode=0755,target=/root/.cache/pip \
29-
pip install uv~=0.2
27+
# install UV https://docs.astral.sh/uv/guides/integration/docker/#installing-uv
28+
COPY --from=ghcr.io/astral-sh/uv:0.4.24 /uv /uvx /bin/
3029

3130
RUN uv venv "${VIRTUAL_ENV}"
3231

services/agent/Dockerfile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,8 @@ RUN --mount=type=cache,target=/var/cache/apt,mode=0755,sharing=private \
7373
&& apt-get install -y --no-install-recommends \
7474
build-essential
7575

76-
# NOTE: install https://github.com/astral-sh/uv ultra-fast rust-based pip replacement
77-
RUN --mount=type=cache,mode=0755,target=/root/.cache/pip \
78-
pip install uv~=0.2
76+
# install UV https://docs.astral.sh/uv/guides/integration/docker/#installing-uv
77+
COPY --from=ghcr.io/astral-sh/uv:0.4.24 /uv /uvx /bin/
7978

8079
# NOTE: python virtualenv is used here such that installed
8180
# packages may be moved to production image easily by copying the venv

services/api-server/Dockerfile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,8 @@ RUN --mount=type=cache,target=/var/cache/apt,mode=0755,sharing=private \
6969
&& apt-get install -y --no-install-recommends \
7070
build-essential
7171

72-
# NOTE: install https://github.com/astral-sh/uv ultra-fast rust-based pip replacement
73-
RUN --mount=type=cache,mode=0755,target=/root/.cache/pip \
74-
pip install uv~=0.2
72+
# install UV https://docs.astral.sh/uv/guides/integration/docker/#installing-uv
73+
COPY --from=ghcr.io/astral-sh/uv:0.4.24 /uv /uvx /bin/
7574

7675
# NOTE: python virtualenv is used here such that installed
7776
# packages may be moved to production image easily by copying the venv

services/autoscaling/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,9 @@ RUN --mount=type=cache,target=/var/cache/apt,mode=0755,sharing=private \
8989
&& apt-get install -y --no-install-recommends \
9090
build-essential
9191

92-
# NOTE: install https://github.com/astral-sh/uv ultra-fast rust-based pip replacement
93-
RUN --mount=type=cache,mode=0755,target=/root/.cache/pip \
94-
pip install uv~=0.2
92+
# install UV https://docs.astral.sh/uv/guides/integration/docker/#installing-uv
93+
COPY --from=ghcr.io/astral-sh/uv:0.4.24 /uv /uvx /bin/
94+
9595

9696
# NOTE: python virtualenv is used here such that installed
9797
# packages may be moved to production image easily by copying the venv

services/catalog/Dockerfile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,8 @@ RUN --mount=type=cache,target=/var/cache/apt,mode=0755,sharing=private \
7070
&& apt-get install -y --no-install-recommends \
7171
build-essential
7272

73-
# NOTE: install https://github.com/astral-sh/uv ultra-fast rust-based pip replacement
74-
RUN --mount=type=cache,mode=0755,target=/root/.cache/pip \
75-
pip install uv~=0.2
73+
# install UV https://docs.astral.sh/uv/guides/integration/docker/#installing-uv
74+
COPY --from=ghcr.io/astral-sh/uv:0.4.24 /uv /uvx /bin/
7675

7776
# NOTE: python virtualenv is used here such that installed
7877
# packages may be moved to production image easily by copying the venv

services/clusters-keeper/Dockerfile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,8 @@ RUN --mount=type=cache,target=/var/cache/apt,mode=0755,sharing=private \
8989
&& apt-get install -y --no-install-recommends \
9090
build-essential
9191

92-
# NOTE: install https://github.com/astral-sh/uv ultra-fast rust-based pip replacement
93-
RUN --mount=type=cache,mode=0755,target=/root/.cache/pip \
94-
pip install uv~=0.2
92+
# install UV https://docs.astral.sh/uv/guides/integration/docker/#installing-uv
93+
COPY --from=ghcr.io/astral-sh/uv:0.4.24 /uv /uvx /bin/
9594

9695
# NOTE: python virtualenv is used here such that installed
9796
# packages may be moved to production image easily by copying the venv

services/dask-sidecar/Dockerfile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,8 @@ RUN --mount=type=cache,target=/var/cache/apt,mode=0755,sharing=private \
8080
&& apt-get install -y --no-install-recommends \
8181
build-essential
8282

83-
# NOTE: install https://github.com/astral-sh/uv ultra-fast rust-based pip replacement
84-
RUN --mount=type=cache,mode=0755,target=/root/.cache/pip \
85-
pip install uv~=0.2
83+
# install UV https://docs.astral.sh/uv/guides/integration/docker/#installing-uv
84+
COPY --from=ghcr.io/astral-sh/uv:0.4.24 /uv /uvx /bin/
8685

8786
# NOTE: python virtualenv is used here such that installed packages may be moved to production image easily by copying the venv
8887
RUN uv venv "${VIRTUAL_ENV}"

services/datcore-adapter/Dockerfile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,8 @@ RUN --mount=type=cache,target=/var/cache/apt,mode=0755,sharing=private \
7070
&& apt-get install -y --no-install-recommends \
7171
build-essential
7272

73-
# NOTE: install https://github.com/astral-sh/uv ultra-fast rust-based pip replacement
74-
RUN --mount=type=cache,mode=0755,target=/root/.cache/pip \
75-
pip install uv~=0.2
73+
# install UV https://docs.astral.sh/uv/guides/integration/docker/#installing-uv
74+
COPY --from=ghcr.io/astral-sh/uv:0.4.24 /uv /uvx /bin/
7675

7776
# NOTE: python virtualenv is used here such that installed
7877
# packages may be moved to production image easily by copying the venv

0 commit comments

Comments
 (0)