Describe the bug
PHP项目在执行s build时报错,提示 composer 不存在
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context
(base) ➜ test-demo1 git:(master) ✗ s build --use-docker
⌛ Steps for [build] of [test-demo1]
====================
[2025-06-10 15:27:54][INFO][http] runCommand ===>
docker pull registry.cn-beijing.aliyuncs.com/aliyunfc/runtime-custom.debian10:build-3.1.0
build-3.1.0: Pulling from aliyunfc/runtime-custom.debian10
620af4e91dbf: Pull complete
fae29f309a72: Pull complete
28fca74d99b6: Pull complete
0b5db87f5b42: Pull complete
fa488706ea13: Pull complete
e761c5128332: Pull complete
172d5a7e6834: Pull complete
09c3d7cc89f6: Pull complete
234a814752a2: Pull complete
8f3ff589edc2: Pull complete
66f6c9eea021: Pull complete
fdab5c5d31a7: Pull complete
3294b084210e: Pull complete
15ca122b0498: Pull complete
9e160cf7d223: Pull complete
3b9b30fbf58d: Pull complete
75c4c8247271: Pull complete
4f4fb700ef54: Pull complete
b682426455e6: Pull complete
4520cc8b0a6d: Pull complete
406fb6116917: Pull complete
cfa75db46f03: Pull complete
879d6fa53521: Pull complete
bdd53bc777f7: Pull complete
fe3a3acca4e0: Pull complete
097a86ddf855: Pull complete
7d2104d3a6f9: Pull complete
a2a0d356a4ab: Pull complete
0ab763ad984d: Pull complete
16c8ed576a93: Pull complete
53f14a21b82a: Pull complete
9c009ad02dac: Pull complete
Digest: sha256:4c8f85dff56d8aecb19e125a8706f2847b0b32c78b216f886b834258d6cbccb6
Status: Downloaded newer image for registry.cn-beijing.aliyuncs.com/aliyunfc/runtime-custom.debian10:build-3.1.0
registry.cn-beijing.aliyuncs.com/aliyunfc/runtime-custom.debian10:build-3.1.0
[2025-06-10 15:28:26][INFO][http] runCommand ===>
docker run --platform linux/amd64 --rm -v /Users/test/work/source/test-demo1:/code registry.cn-beijing.aliyuncs.com/aliyunfc/runtime-custom.debian10:build-3.1.0 bash -c "composer install "
bash: composer: command not found
✖ [http] failed to [build] (33.83s)
✖ [http] failed to [build]:
====================
Error Message:
command failed with code 127
A complete log of this run can be found in: /Users/test/.s/logs/0610152754
Env: @serverless-devs/s: 3.1.10, darwin-arm64 node-v23.9.0
Logs: /Users/test/.s/logs/0610152754
Feedback: https://github.com/Serverless-Devs/Serverless-Devs/issues
Describe the bug
PHP项目在执行s build时报错,提示 composer 不存在
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context