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.

fix: support to change NEXT_PUBLIC_BASE_PATH env using `--build-arg` in docker build (#29836)

Kimi WANGc158dfa198fa
diff --git a/web/Dockerfile b/web/Dockerfile
index f24e9f2fc31..86977931450 100644
--- a/web/Dockerfile
+++ b/web/Dockerfile
@@ -12,7 +12,8 @@ RUN apk add --no-cache tzdata
RUN corepack enable
ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH"
-ENV NEXT_PUBLIC_BASE_PATH=""
+ARG NEXT_PUBLIC_BASE_PATH=""
+ENV NEXT_PUBLIC_BASE_PATH="$NEXT_PUBLIC_BASE_PATH"
# install packages