diff --git a/.drone.yml b/.drone.yml index 6a739b8..cbf979b 100644 --- a/.drone.yml +++ b/.drone.yml @@ -54,9 +54,9 @@ steps: port: 22 script: - cd /app/martial/frontend-build - - docker build -t martial/frontend:latest . - - cd /app/martial - - docker-compose up -d frontend + - docker build -f Dockerfile.deploy -t martial/frontend:latest . + - docker rm -f martial-frontend || true + - docker run -d --name martial-frontend --restart always -p 5173:80 --network martial_martial-network -e TZ=Asia/Shanghai martial/frontend:latest - docker ps | grep martial-frontend - echo "✅ 前端部署完成"