|
@@ -30,7 +30,7 @@ COPY --from=deps /app/node_modules ./node_modules
|
|
|
# 复制源代码
|
|
# 复制源代码
|
|
|
COPY . .
|
|
COPY . .
|
|
|
# 设置构建时需要的环境变量
|
|
# 设置构建时需要的环境变量
|
|
|
-ENV SOL_ENDPOINT=https://go.getblock.io/88f35f6689954e41bce217ce5b7f02c0
|
|
|
|
|
|
|
+ENV SOL_ENDPOINT=${SOL_ENDPOINT}
|
|
|
# 构建应用
|
|
# 构建应用
|
|
|
RUN pnpm build
|
|
RUN pnpm build
|
|
|
|
|
|
|
@@ -42,7 +42,7 @@ ENV NODE_ENV=production
|
|
|
# 禁用 Next.js 遥测
|
|
# 禁用 Next.js 遥测
|
|
|
ENV NEXT_TELEMETRY_DISABLED=1
|
|
ENV NEXT_TELEMETRY_DISABLED=1
|
|
|
|
|
|
|
|
-ENV SOL_ENDPOINT=https://go.getblock.io/88f35f6689954e41bce217ce5b7f02c0
|
|
|
|
|
|
|
+ENV SOL_ENDPOINT=${SOL_ENDPOINT}
|
|
|
|
|
|
|
|
# 创建非 root 用户
|
|
# 创建非 root 用户
|
|
|
RUN addgroup --system --gid 1001 nodejs
|
|
RUN addgroup --system --gid 1001 nodejs
|