Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

chore: bump pnpm to v10 in web dockerfile (#17611)

Bowen Liangbe3ebea45b0e
diff --git a/.devcontainer/post_create_command.sh b/.devcontainer/post_create_command.sh
index 5e76bdc2a3a..c53c26bb9ae 100755
--- a/.devcontainer/post_create_command.sh
+++ b/.devcontainer/post_create_command.sh
@@ -1,6 +1,6 @@
#!/bin/bash
-npm add -g [email protected]
+npm add -g [email protected]
cd web && pnpm install
pipx install poetry
diff --git a/.github/workflows/web-tests.yml b/.github/workflows/web-tests.yml
index acee26af2fd..7fe3f45a8a5 100644
--- a/.github/workflows/web-tests.yml
+++ b/.github/workflows/web-tests.yml
@@ -31,7 +31,9 @@ jobs:
uses: tj-actions/changed-files@v45
with:
files: web/**
+
- name: Install pnpm
+ if: steps.changed-files.outputs.any_changed == 'true'
uses: pnpm/action-setup@v4
with:
version: 10
diff --git a/web/Dockerfile b/web/Dockerfile
index 8d50154873e..80ec6d652ca 100644
--- a/web/Dockerfile
+++ b/web/Dockerfile
@@ -6,7 +6,7 @@ LABEL maintainer="[email protected]"
# RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
RUN apk add --no-cache tzdata
-RUN npm install -g [email protected]
+RUN npm install -g [email protected]
ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH"
diff --git a/web/README.md b/web/README.md
index 900924f348d..3236347e802 100644
--- a/web/README.md
+++ b/web/README.md
@@ -6,7 +6,9 @@ This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next
### Run by source code
-To start the web frontend service, you will need [Node.js v18.x (LTS)](https://nodejs.org/en) and [pnpm version 9.12.2](https://pnpm.io).
+Before starting the web frontend service, please make sure the following environment is ready.
+- [Node.js](https://nodejs.org) >= v18.x
+- [pnpm](https://pnpm.io) v10.x
First, install the dependencies: