修复docker-compose-custom.yml构建配置

- 添加build配置段,指定Dockerfile构建镜像
- 修复镜像构建问题,现在可以正确编译最新代码
- 保持所有环境变量和网络配置不变

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
huangzhenpc
2025-08-25 15:17:45 +08:00
parent 8d4bdacca2
commit 04c59d1136

View File

@@ -2,6 +2,9 @@ version: '3.4'
services:
new-api-custom:
build:
context: .
dockerfile: Dockerfile
image: new-api-custom:latest
container_name: new-api-custom
restart: always