Skip to content

Commit e1e1313

Browse files
authored
fix: include uv/uvx in runtime Docker image (#12127)
* fix: include uv/uvx in runtime Docker image add uv/uvx to runtime image so uvx is available in container i did this for all images which might be too much * chore: address supply chain attack addres ram's supply chain attack comment * chore: upgrade pyproject versions upgrade pyproject versions
1 parent aaeda7e commit e1e1313

11 files changed

Lines changed: 93 additions & 104 deletions

docker/build_and_push.Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@ RUN apt-get update \
8181
&& apt-get install --no-install-recommends -y curl git libpq5 gnupg xz-utils \
8282
&& apt-get clean \
8383
&& rm -rf /var/lib/apt/lists/*
84+
COPY --from=builder /usr/local/bin/uv /usr/local/bin/uv
85+
COPY --from=builder /usr/local/bin/uvx /usr/local/bin/uvx
8486
RUN ARCH=$(dpkg --print-architecture) \
8587
&& if [ "$ARCH" = "amd64" ]; then NODE_ARCH="x64"; \
8688
elif [ "$ARCH" = "arm64" ]; then NODE_ARCH="arm64"; \

docker/build_and_push_backend.Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ RUN apt-get update \
5555
xz-utils \
5656
&& apt-get clean \
5757
&& rm -rf /var/lib/apt/lists/*
58-
58+
COPY --from=builder /usr/local/bin/uv /usr/local/bin/uv
59+
COPY --from=builder /usr/local/bin/uvx /usr/local/bin/uvx
5960
# Install Node.js (required for npx-based MCP stdio servers)
6061
RUN ARCH=$(dpkg --print-architecture) \
6162
&& if [ "$ARCH" = "amd64" ]; then NODE_ARCH="x64"; \

docker/build_and_push_base.Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ RUN apt-get update \
8282
&& apt-get install --no-install-recommends -y curl git libpq5 gnupg xz-utils \
8383
&& apt-get clean \
8484
&& rm -rf /var/lib/apt/lists/*
85+
COPY --from=builder /usr/local/bin/uv /usr/local/bin/uv
86+
COPY --from=builder /usr/local/bin/uvx /usr/local/bin/uvx
8587
RUN ARCH=$(dpkg --print-architecture) \
8688
&& if [ "$ARCH" = "amd64" ]; then NODE_ARCH="x64"; \
8789
elif [ "$ARCH" = "arm64" ]; then NODE_ARCH="arm64"; \

docker/build_and_push_ep.Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@ RUN apt-get update \
7777
&& apt-get install --no-install-recommends -y curl git libpq5 gnupg xz-utils \
7878
&& apt-get clean \
7979
&& rm -rf /var/lib/apt/lists/*
80+
COPY --from=builder /usr/local/bin/uv /usr/local/bin/uv
81+
COPY --from=builder /usr/local/bin/uvx /usr/local/bin/uvx
8082
RUN ARCH=$(dpkg --print-architecture) \
8183
&& if [ "$ARCH" = "amd64" ]; then NODE_ARCH="x64"; \
8284
elif [ "$ARCH" = "arm64" ]; then NODE_ARCH="arm64"; \

docker/build_and_push_with_extras.Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ RUN apt-get update \
7878
&& apt-get install --no-install-recommends -y curl git libpq5 gnupg xz-utils \
7979
&& apt-get clean \
8080
&& rm -rf /var/lib/apt/lists/*
81+
COPY --from=builder /usr/local/bin/uv /usr/local/bin/uv
82+
COPY --from=builder /usr/local/bin/uvx /usr/local/bin/uvx
8183
RUN ARCH=$(dpkg --print-architecture) \
8284
&& if [ "$ARCH" = "amd64" ]; then NODE_ARCH="x64"; \
8385
elif [ "$ARCH" = "arm64" ]; then NODE_ARCH="arm64"; \

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "langflow"
3-
version = "1.8.0"
3+
version = "1.8.1"
44
description = "A Python package with a built-in web application"
55
requires-python = ">=3.10,<3.14"
66
license = "MIT"
@@ -17,7 +17,7 @@ maintainers = [
1717
]
1818
# Define your main dependencies here
1919
dependencies = [
20-
"langflow-base[complete]~=0.8.0",
20+
"langflow-base[complete]~=0.8.1",
2121
]
2222

2323

src/backend/base/pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "langflow-base"
3-
version = "0.8.0"
3+
version = "0.8.1"
44
description = "A Python package with a built-in web application"
55
requires-python = ">=3.10,<3.14"
66
license = "MIT"
@@ -17,7 +17,7 @@ maintainers = [
1717
]
1818

1919
dependencies = [
20-
"lfx~=0.3.0",
20+
"lfx~=0.3.1",
2121
"fastapi>=0.135.0,<1.0.0",
2222
"httpx[http2]>=0.27,<1.0.0",
2323
"aiofile>=3.9.0,<4.0.0",

src/frontend/package-lock.json

Lines changed: 2 additions & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/frontend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "langflow",
3-
"version": "1.8.0",
3+
"version": "1.8.1",
44
"private": true,
55
"engines": {
66
"node": ">=20.19.0"

src/lfx/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "lfx"
3-
version = "0.3.0"
3+
version = "0.3.1"
44
description = "Langflow Executor - A lightweight CLI tool for executing and serving Langflow AI flows"
55
readme = "README.md"
66
authors = [

0 commit comments

Comments
 (0)