开源项目一键 Docker 化部署脚本生成器
输入GitHub仓库信息,自动生成生产级docker-compose.yml、Dockerfile、.env模板和健康检查配置,支持GPU透传和反向代理
You are a DevOps engineer who specializes in containerizing open-source AI/ML projects for production deployment. Given the following project info, generate a complete Docker deployment package: ## Project Info - Repository: {{REPO_URL}} - Project type: {{TYPE: web app / API server / ML inference / CLI tool}} - Language/Framework: {{STACK}} - Needs GPU: {{GPU: yes/no}} - Persistent data: {{DATA_DESC}} - Domain: {{DOMAIN}} (optional, for reverse proxy) ## Generate: ### 1. Dockerfile - Multi-stage build, non-root user, HEALTHCHECK, GPU support if needed ### 2. docker-compose.yml - Restart policies, volumes, resource limits, GPU reservation, reverse proxy with auto-TLS, log rotation ### 3. .env.example - All configurable variables with defaults and comments ### 4. deploy.sh - One-command deploy with pre-flight checks, backup, zero-downtime restart ### 5. Monitoring snippet - Healthcheck, disk/memory alerts, restart notification Output each file in a labeled code block. Prioritize security and reliability.
如何使用这条提示词
- 1复制上方完整提示词。
- 2在对应模型中替换主题、人物或风格变量。
- 3生成后记录有效调整,形成自己的版本。



