feat: docker-compose.1panel.yml 支持本地构建
- 默认从本地代码构建镜像 - 保留官方镜像选项(注释) - 支持二次开发场景 - 统一配置文件,无需维护多个版本
This commit is contained in:
@@ -9,7 +9,16 @@ services:
|
||||
# Sub2API Application
|
||||
# ===========================================================================
|
||||
sub2api:
|
||||
image: weishaw/sub2api:latest
|
||||
# 方式1:使用官方镜像(快速部署)
|
||||
# image: weishaw/sub2api:latest
|
||||
|
||||
# 方式2:从本地代码构建(二次开发)
|
||||
build:
|
||||
context: ../
|
||||
dockerfile: Dockerfile
|
||||
args:
|
||||
- BUILD_TAGS=embed
|
||||
image: sub2api:local
|
||||
container_name: sub2api
|
||||
restart: unless-stopped
|
||||
ulimits:
|
||||
|
||||
Reference in New Issue
Block a user