This commit is contained in:
18
build-docker.sh
Normal file
18
build-docker.sh
Normal 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"
|
||||
Reference in New Issue
Block a user