Files
geMoldInsight/deploy/build.bat
T
2026-08-31 18:01:34 +08:00

40 lines
1.1 KiB
Batchfile
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
@echo off
REM ============================================
REM 构建脚本 — 独立部署 (Windows)
REM ============================================
cd /d "%~dp0\.."
echo === 构建基础镜像 ===
docker build -t gemold-base:latest -f deploy\Dockerfile.base .
echo.
echo === 构建统一后端镜像 ===
docker build -t gemold-backend:latest -f deploy\Dockerfile.moldinsight .
echo.
echo === 构建 Celery Worker 镜像 ===
docker build -t gemold-celery:latest -f deploy\Dockerfile.celery .
echo.
echo.
echo === 构建前端镜像 (Nginx 静态站点) ===
docker build -t gemold-frontend:latest -f deploy\Dockerfile.frontend .
echo.
echo === 全部构建完成 ===
echo.
echo 启动完整系统(前端 + unified backend + celery):
echo docker compose --profile full up -d
echo.
echo 仅启动 unified backend:
echo docker compose --profile unified up -d
echo.
echo 仅启动前端入口:
echo docker compose --profile frontend up -d
echo.
echo 仅启动进销存:
echo docker compose --profile inventory up -d
echo.
echo 仅启动模具分析:
echo docker compose --profile moldinsight up -d