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

Co-authored-by: root <root@KIMI-DESKTOP-01.mchrcloud.com>
This commit is contained in:
Kimi WANG 2026-01-05 11:03:12 +08:00 committed by GitHub
parent 79913590ae
commit c158dfa198
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -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