修复缓存
Some checks failed
构建并运行 Docker / build (push) Failing after 12m17s

This commit is contained in:
2025-07-29 14:25:03 +08:00
parent cfdc5e5d9a
commit f96e141b17
4 changed files with 26 additions and 11 deletions

18
build-docker.sh Normal file
View File

@ -0,0 +1,18 @@
#!/bin/bash
# Gitea Actions 专用构建脚本
set -e
echo "🚀 开始构建 Docker 镜像..."
# 使用标准 docker build 命令
docker build -t watch-stock-list:latest .
echo "✅ 构建完成!"
# 启动容器
echo "🐳 启动容器..."
docker-compose down || true
docker-compose up -d --force-recreate
echo "🎉 部署完成!应用运行在 http://localhost:7799"