前端修饰与渲染处理

This commit is contained in:
2026-04-26 03:34:47 +08:00
parent 35eff3faf6
commit 6b5ddac178
114 changed files with 18465 additions and 132 deletions

38
build-docker.sh Normal file
View File

@@ -0,0 +1,38 @@
#!/bin/bash
# Docker Build Script for China Users (Linux/Mac)
echo "========================================"
echo "Docker Build Script for China Users"
echo "========================================"
echo ""
# Set environment variables for China
export DOCKER_BUILDKIT=1
export COMPOSE_DOCKER_CLI_BUILD=1
echo "Step 1: Cleaning up old builds..."
docker system prune -f
docker builder prune -f
echo ""
echo "Step 2: Building backend service..."
docker-compose build backend
if [ $? -ne 0 ]; then
echo "Backend build failed!"
exit 1
fi
echo ""
echo "Step 3: Building frontend service..."
docker-compose build frontend
if [ $? -ne 0 ]; then
echo "Frontend build failed!"
exit 1
fi
echo ""
echo "========================================"
echo "Build completed successfully!"
echo "========================================"
echo ""
echo "You can now run: docker-compose up -d"