fix(stack): 修正构建上下文路径层级 ../../.. 并将 base-build 重命名为 author

This commit is contained in:
augushong
2026-07-22 01:16:24 +08:00
parent 62e72af93d
commit bed965a9b1
10 changed files with 21 additions and 21 deletions

View File

@@ -0,0 +1,22 @@
name: ulthon_admin
services:
ulthon_admin:
# 正式环境中您应当构建一个完整镜像使用镜像名称或id运行不要使用dockerfile
# image: ulthon/ulthon_admin:v1
build:
context: ../../.. # 仓库根目录B-route从模式目录 cd 进来后指向根)
dockerfile: source/stack/author/Dockerfile # Dockerfile 的名称
restart: always
ports:
- "8000:8000" # HTTP
volumes:
- ../../..:/var/www/html # 直接分发代码可以去掉注释并将下面的目录增加注释
# - ./runtime:/var/www/html/runtime
# - ./public/storage:/var/www/html/public/storage
# - ./public/build:/var/www/html/public/build
# - ./storage:/var/www/html/storage
extra_hosts:
- "host.docker.internal:host-gateway"