Add Docker mirror configuration and build scripts
Some checks failed
Build and Deploy / test-backend (push) Has been cancelled
Build and Deploy / build-backend (push) Has been cancelled
Build and Deploy / build-admin (push) Has been cancelled
Deploy to Production / build-backend (push) Has been cancelled
Deploy to Production / deploy (push) Has been cancelled

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
bujie9527
2026-02-05 22:42:05 +08:00
parent ed3a5c0486
commit 3c95ae0000
4 changed files with 335 additions and 2 deletions

View File

@@ -1,6 +1,8 @@
# 生产环境 Admin Dockerfile最小构建
# 用途:构建优化的 Next.js 生产镜像
FROM node:20-alpine AS builder
# 支持通过构建参数指定基础镜像
ARG NODE_IMAGE=node:20-alpine
FROM ${NODE_IMAGE} AS builder
WORKDIR /app
@@ -22,7 +24,8 @@ ENV NEXT_TELEMETRY_DISABLED=1
RUN npm run build
# 生产镜像
FROM node:20-alpine
ARG NODE_IMAGE=node:20-alpine
FROM ${NODE_IMAGE}
WORKDIR /app