fix(mining-admin-web): ensure public dir exists in Docker build

mkdir -p public before build so COPY --from=builder /app/public works
even without static assets.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
hailin 2026-02-01 22:03:44 -08:00
parent ad51aa521f
commit 394f2529cd
1 changed files with 3 additions and 0 deletions

View File

@ -25,6 +25,9 @@ COPY . .
ENV NEXT_TELEMETRY_DISABLED=1
ENV NODE_ENV=production
# 确保 public 目录存在(可能为空)
RUN mkdir -p public
# 构建应用
RUN npm run build