ci: 添加 Docker + Jenkins 自动化部署配置
- Dockerfile 多阶段构建,standalone 模式输出 - Jenkinsfile 定义 GitLab 触发的 CI/CD 流水线 - docker-compose.yml 简化部署 - next.config.ts 开启 standalone 输出
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
services:
|
||||
app:
|
||||
build: .
|
||||
image: no-whatever:latest
|
||||
container_name: no-whatever
|
||||
ports:
|
||||
- "3000:3000"
|
||||
volumes:
|
||||
- app-data:/app/data
|
||||
environment:
|
||||
- DATABASE_URL=file:/app/data/dev.db
|
||||
restart: unless-stopped
|
||||
|
||||
volumes:
|
||||
app-data:
|
||||
Reference in New Issue
Block a user