Skip to content

Commit 995677b

Browse files
committed
fix: install offical nodejs tarball
install offical nodejs tarball update playwright version
1 parent b007565 commit 995677b

File tree

7 files changed

+84
-50
lines changed

7 files changed

+84
-50
lines changed

.github/workflows/typescript_test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ env:
6969
# Define the directory where Playwright browsers will be installed.
7070
# This path is used for caching across workflows
7171
PLAYWRIGHT_BROWSERS_PATH: "ms-playwright"
72-
PLAYWRIGHT_VERSION: "1.56.0"
72+
PLAYWRIGHT_VERSION: "1.57.0"
7373

7474
jobs:
7575
determine-test-suite:

docker/build_and_push.Dockerfile

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -74,19 +74,30 @@ FROM python:3.12.12-slim-trixie AS runtime
7474

7575
RUN apt-get update \
7676
&& apt-get upgrade -y \
77-
&& apt-get install -y curl git libpq5 gnupg \
78-
&& apt list --all-versions nodejs \
79-
&& curl -fsSL https://deb.nodesource.com/setup_22.x | bash - \
80-
&& apt-get install -y nodejs=22.22.0 \
77+
&& apt-get install -y curl git libpq5 gnupg xz-utils \
8178
&& apt-get clean \
82-
&& rm -rf /var/lib/apt/lists/* \
83-
&& useradd user -u 1000 -g 0 --no-create-home --home-dir /app/data
79+
&& rm -rf /var/lib/apt/lists/*
80+
81+
RUN NODE_VERSION=$(curl -fsSL https://nodejs.org/dist/index.json \
82+
| grep '"version": "v22' \
83+
| head -n 1 \
84+
| cut -d'"' -f4) \
85+
&& echo "Installing Node.js $NODE_VERSION" \
86+
&& curl -fsSL "https://nodejs.org/dist/$NODE_VERSION/node-$NODE_VERSION-linux-x64.tar.xz" -o node.tar.xz \
87+
&& tar -xf node.tar.xz -C /usr/local --strip-components=1 \
88+
&& rm node.tar.xz \
89+
&& node --version \
90+
&& npm --version
91+
92+
RUN useradd user -u 1000 -g 0 --no-create-home --home-dir /app/data
8493

8594
COPY --from=builder --chown=1000 /app/.venv /app/.venv
8695

87-
# Place executables in the environment at the front of the path
8896
ENV PATH="/app/.venv/bin:$PATH"
8997

98+
RUN /app/.venv/bin/pip install --upgrade playwright \
99+
&& /app/.venv/bin/playwright install
100+
90101
LABEL org.opencontainers.image.title=langflow
91102
LABEL org.opencontainers.image.authors=['Langflow']
92103
LABEL org.opencontainers.image.licenses=MIT

docker/build_and_push_base.Dockerfile

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -78,19 +78,30 @@ FROM python:3.12.12-slim-trixie AS runtime
7878

7979
RUN apt-get update \
8080
&& apt-get upgrade -y \
81-
&& apt-get install -y git libpq5 curl gnupg \
82-
&& curl -fsSL https://deb.nodesource.com/setup_22.x | bash - \
83-
&& apt list --all-versions nodejs \
84-
&& apt-get install -y nodejs=22.22.0 \
81+
&& apt-get install -y curl git libpq5 gnupg xz-utils \
8582
&& apt-get clean \
86-
&& rm -rf /var/lib/apt/lists/* \
87-
&& useradd user -u 1000 -g 0 --no-create-home --home-dir /app/data
88-
# and we use the venv at the root because workspaces
83+
&& rm -rf /var/lib/apt/lists/*
84+
85+
RUN NODE_VERSION=$(curl -fsSL https://nodejs.org/dist/index.json \
86+
| grep '"version": "v22' \
87+
| head -n 1 \
88+
| cut -d'"' -f4) \
89+
&& echo "Installing Node.js $NODE_VERSION" \
90+
&& curl -fsSL "https://nodejs.org/dist/$NODE_VERSION/node-$NODE_VERSION-linux-x64.tar.xz" -o node.tar.xz \
91+
&& tar -xf node.tar.xz -C /usr/local --strip-components=1 \
92+
&& rm node.tar.xz \
93+
&& node --version \
94+
&& npm --version
95+
96+
RUN useradd user -u 1000 -g 0 --no-create-home --home-dir /app/data
97+
8998
COPY --from=builder --chown=1000 /app/.venv /app/.venv
9099

91-
# Place executables in the environment at the front of the path
92100
ENV PATH="/app/.venv/bin:$PATH"
93101

102+
RUN /app/.venv/bin/pip install --upgrade playwright \
103+
&& /app/.venv/bin/playwright install
104+
94105
LABEL org.opencontainers.image.title=langflow
95106
LABEL org.opencontainers.image.authors=['Langflow']
96107
LABEL org.opencontainers.image.licenses=MIT

docker/build_and_push_ep.Dockerfile

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -74,29 +74,30 @@ FROM python:3.12.12-slim-trixie AS runtime
7474

7575
RUN apt-get update \
7676
&& apt-get upgrade -y \
77-
&& apt-get install --no-install-recommends -y \
78-
curl \
79-
git \
80-
# Add PostgreSQL client libraries
81-
libpq5 \
82-
gnupg \
83-
&& curl -fsSL https://deb.nodesource.com/setup_22.x | bash - \
84-
&& apt list --all-versions nodejs \
85-
&& apt-get install -y nodejs=22.22.0 \
77+
&& apt-get install --no-install-recommends -y curl git libpq5 gnupg xz-utils \
8678
&& apt-get clean \
87-
&& rm -rf /var/lib/apt/lists/* \
88-
&& useradd user -u 1000 -g 0 --no-create-home --home-dir /app/data -s /usr/bin/false \
89-
&& mkdir /data && chown -R 1000:0 /data
79+
&& rm -rf /var/lib/apt/lists/*
9080

91-
COPY --from=builder --chown=1000 /app/.venv /app/.venv
81+
RUN NODE_VERSION=$(curl -fsSL https://nodejs.org/dist/index.json \
82+
| grep '"version": "v22' \
83+
| head -n 1 \
84+
| cut -d'"' -f4) \
85+
&& echo "Installing Node.js $NODE_VERSION" \
86+
&& curl -fsSL "https://nodejs.org/dist/$NODE_VERSION/node-$NODE_VERSION-linux-x64.tar.xz" -o node.tar.xz \
87+
&& tar -xf node.tar.xz -C /usr/local --strip-components=1 \
88+
&& rm node.tar.xz \
89+
&& node --version \
90+
&& npm --version
9291

93-
# Remove shell binaries to completely disable shell access
94-
RUN rm -f /bin/sh /bin/bash /bin/dash /usr/bin/sh /usr/bin/bash /usr/bin/dash \
95-
/bin/ash /bin/zsh /bin/csh /bin/tcsh /bin/ksh 2>/dev/null || true
92+
RUN useradd user -u 1000 -g 0 --no-create-home --home-dir /app/data
93+
94+
COPY --from=builder --chown=1000 /app/.venv /app/.venv
9695

97-
# Place executables in the environment at the front of the path
9896
ENV PATH="/app/.venv/bin:$PATH"
9997

98+
RUN /app/.venv/bin/pip install --upgrade playwright \
99+
&& /app/.venv/bin/playwright install
100+
100101
LABEL org.opencontainers.image.title=langflow
101102
LABEL org.opencontainers.image.authors=['Langflow']
102103
LABEL org.opencontainers.image.licenses=MIT

docker/build_and_push_with_extras.Dockerfile

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -74,19 +74,30 @@ FROM python:3.12.12-slim-trixie AS runtime
7474

7575
RUN apt-get update \
7676
&& apt-get upgrade -y \
77-
&& apt-get install -y curl git libpq5 gnupg \
78-
&& curl -fsSL https://deb.nodesource.com/setup_22.x | bash - \
79-
&& apt list --all-versions nodejs \
80-
&& apt-get install -y nodejs=22.22.0 \
77+
&& apt-get install -y curl git libpq5 gnupg xz-utils \
8178
&& apt-get clean \
82-
&& rm -rf /var/lib/apt/lists/* \
83-
&& useradd user -u 1000 -g 0 --no-create-home --home-dir /app/data
79+
&& rm -rf /var/lib/apt/lists/*
80+
81+
RUN NODE_VERSION=$(curl -fsSL https://nodejs.org/dist/index.json \
82+
| grep '"version": "v22' \
83+
| head -n 1 \
84+
| cut -d'"' -f4) \
85+
&& echo "Installing Node.js $NODE_VERSION" \
86+
&& curl -fsSL "https://nodejs.org/dist/$NODE_VERSION/node-$NODE_VERSION-linux-x64.tar.xz" -o node.tar.xz \
87+
&& tar -xf node.tar.xz -C /usr/local --strip-components=1 \
88+
&& rm node.tar.xz \
89+
&& node --version \
90+
&& npm --version
91+
92+
RUN useradd user -u 1000 -g 0 --no-create-home --home-dir /app/data
8493

8594
COPY --from=builder --chown=1000 /app/.venv /app/.venv
8695

87-
# Place executables in the environment at the front of the path
8896
ENV PATH="/app/.venv/bin:$PATH"
8997

98+
RUN /app/.venv/bin/pip install --upgrade playwright \
99+
&& /app/.venv/bin/playwright install
100+
90101
LABEL org.opencontainers.image.title=langflow
91102
LABEL org.opencontainers.image.authors=['Langflow']
92103
LABEL org.opencontainers.image.licenses=MIT

src/frontend/package-lock.json

Lines changed: 8 additions & 8 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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
"openseadragon": "^4.1.1",
5555
"p-debounce": "^4.0.0",
5656
"pako": "^2.1.0",
57-
"playwright": "^1.56.0",
57+
"playwright": "^1.57.0",
5858
"pretty-ms": "^9.1.0",
5959
"react": "^18.3.1",
6060
"react-ace": "^11.0.1",
@@ -122,7 +122,7 @@
122122
"@biomejs/biome": "2.1.1",
123123
"@jest/types": "^30.0.1",
124124
"@modelcontextprotocol/server-everything": "^2026.1.14",
125-
"@playwright/test": "^1.56.0",
125+
"@playwright/test": "^1.57.0",
126126
"@swc/cli": "^0.5.2",
127127
"@swc/core": "^1.6.1",
128128
"@tailwindcss/typography": "^0.5.13",

0 commit comments

Comments
 (0)