mirror of
https://github.com/labring/FastGPT.git
synced 2026-05-08 01:08:43 +08:00
289da0f7b0
* sandbox-sync-agent * refactor: host pro as submodule * chore: checkpoint host pro restructure * refactor workspace test layout and startup init * chore: update next turbopack setup * chore: snapshot current work before actions fix * chore: update pro submodule * chore: point pro submodule url to upstream https * fix: Dockerfile * chore: update pro submodule * ci: support private pro submodule token and skip fork jobs * fix(ci): build sdk workspace deps before code-sandbox bundle * fix(app): exclude vitest configs from production typecheck * fix(app-image): build sdk packages before next build * fix(ci): align dockerfiles with workspace sdk build flow * chore(docker): upgrade node20 docker images to node24 * fix(ci): read admin coverage output path in pro test workflow * fix(app-image): include next-i18next config and locale assets * chore: update pro submodule * chore: do not specify branch for submodule * chore: remove most ts-nocheck sign * chore: update pro submodule * chore: remove sandbox-agent-sync package * chore: do not modify "pushData" file logic * fix: health check * chore: restore dev axios proxy state * fix: test-fastgpt report workflow * fix: use valid vitest coverage action inputs
32 lines
771 B
Makefile
32 lines
771 B
Makefile
# 定义默认变量
|
|
proxy=null
|
|
image=null
|
|
|
|
# 定义目标
|
|
.PHONY: build
|
|
|
|
# 检查 target 是否定义
|
|
ifndef name
|
|
$(error name is not defined)
|
|
endif
|
|
|
|
projectDir=$(or $(wildcard ./projects/$(name)),$(wildcard ./pro/$(name)))
|
|
|
|
ifeq ($(strip $(projectDir)),)
|
|
$(error Unknown project name '$(name)'; expected ./projects/$(name) or ./pro/$(name))
|
|
endif
|
|
|
|
filePath=$(projectDir)/Dockerfile
|
|
|
|
dev:
|
|
pnpm --prefix $(projectDir) dev
|
|
|
|
build:
|
|
ifeq ($(proxy), taobao)
|
|
docker build -f $(filePath) -t $(image) . --build-arg proxy=taobao
|
|
else ifeq ($(proxy), clash)
|
|
docker build -f $(filePath) -t $(image) . --network host --build-arg HTTP_PROXY=http://127.0.0.1:7890 --build-arg HTTPS_PROXY=http://127.0.0.1:7890
|
|
else
|
|
docker build --progress=plain -f $(filePath) -t $(image) .
|
|
endif
|