chore: update deployment docs and assets

This commit is contained in:
danaisuiyuan
2026-06-15 09:33:00 +08:00
parent 4d12a49f7c
commit bdabe3ba95
58 changed files with 1817 additions and 8685 deletions

View File

@@ -2,23 +2,19 @@
# 积分商城 管理后台前端Vue 2 SPA
# 纯 Nginx 运行时镜像,不含 Node 构建阶段
# 静态文件由宿主机 bind-mount 进来(${SINGLE_ADMIN_WEB_DIR}:/usr/share/nginx/html
# 宿主机目录示例:/www/wwwroot/leilei-jfadmin.czchunfang.com/
# 更新方式rsync 新 dist 到宿主机目录 → 无需重建镜像
# 更新方式rsync 新 dist 到宿主机目录 -> 无需重建镜像
# =============================================================
FROM nginx:1.25-alpine
ENV TZ=Asia/Shanghai
# 切换阿里云 Alpine 镜像源
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories \
&& apk add --no-cache tzdata \
&& cp /usr/share/zoneinfo/$TZ /etc/localtime \
&& echo $TZ > /etc/timezone \
&& rm -f /etc/apk/cache/*.apk
# Nginx 反代配置
# /api/ 和 /adminapi/ 代理到 single-admin-api 容器
RUN cat > /etc/nginx/conf.d/default.conf <<'NGX'
server {
listen 80;