feat(web): support /fl base path deployment

This commit is contained in:
chengkml
2026-05-16 14:08:18 +08:00
parent c4e3d06072
commit b649fac7b9
15 changed files with 109 additions and 9 deletions
+4
View File
@@ -12,7 +12,9 @@ FROM ${NODE_BASE_IMAGE} AS builder
WORKDIR /app
ARG NEXT_PUBLIC_API_BASE_URL=http://localhost:8000
ARG NEXT_PUBLIC_APP_BASE_PATH=/fl
ENV NEXT_PUBLIC_API_BASE_URL=${NEXT_PUBLIC_API_BASE_URL}
ENV NEXT_PUBLIC_APP_BASE_PATH=${NEXT_PUBLIC_APP_BASE_PATH}
COPY --from=deps /app/node_modules ./node_modules
COPY . .
@@ -23,6 +25,8 @@ WORKDIR /app
ENV NODE_ENV=production
ENV PORT=3000
ARG NEXT_PUBLIC_APP_BASE_PATH=/fl
ENV NEXT_PUBLIC_APP_BASE_PATH=${NEXT_PUBLIC_APP_BASE_PATH}
RUN addgroup -S nodejs && adduser -S nextjs -G nodejs