feat(deploy): 阿里云ECS+1Panel 服务器部署方案落地
- docker-compose.server.yml:生产编排(复用 1Panel MySQL、去 mysql/redis、 端口仅绑 127.0.0.1、TZ=Asia/Shanghai、MYSQL_HOST 必填守卫) - 两份 Dockerfile 内置国内构建源:apt/pip→阿里云,npm/playwright→npmmirror (ECS 上直连官方源慢/超时;对本地构建同样可用) - DEPLOY.md 重写为 v2 runbook:单站点反代架构、mysqldump+media 搬迁管道 (ngram 索引导入重建 ~12min)、验收清单、运维表、本地停 scheduler 收尾 Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
+2
-1
@@ -9,7 +9,8 @@ WORKDIR /app
|
||||
# Install deps first (cache-friendly: only re-installs when package*.json
|
||||
# changes; node_modules is never copied from the host via .dockerignore).
|
||||
COPY package.json package-lock.json* ./
|
||||
RUN npm install --no-audit --no-fund # ci 对锁同步严格,本地/容器 npm 版本差异致 EUSAGE
|
||||
# registry 指定 npmmirror(国内构建加速,ECS 上直连 npmjs 慢/超时)
|
||||
RUN npm install --no-audit --no-fund --registry=https://registry.npmmirror.com # ci 对锁同步严格,本地/容器 npm 版本差异致 EUSAGE
|
||||
|
||||
# Copy sources and build the production bundle into ./dist.
|
||||
COPY tsconfig*.json vite.config.ts index.html ./
|
||||
|
||||
Reference in New Issue
Block a user