build(script): root 用户可以使用 composer

Signed-off-by: 李东云 <dongyu.li@luxcreo.ai>
This commit is contained in:
李东云
2023-10-16 17:31:24 +08:00
parent 217178003a
commit 12e99604c9
2 changed files with 3 additions and 1 deletions

1
.idea/HDK-Core.iml generated
View File

@@ -158,6 +158,7 @@
<excludeFolder url="file://$MODULE_DIR$/vendor/cooper/hyperf-pest" />
<excludeFolder url="file://$MODULE_DIR$/vendor/psr/clock" />
<excludeFolder url="file://$MODULE_DIR$/vendor/symfony/polyfill-php83" />
<excludeFolder url="file://$MODULE_DIR$/runtime" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />

View File

@@ -2,7 +2,8 @@
docker run \
--pull always \
-ti --rm --name "hyperf-development-kit" \
-e COMPOSER_ALLOW_SUPERUSER=1 \
-ti --rm --name "hdk-core" \
-w "/srv/www" \
-v "$(pwd)":/srv/www \
-v ~/.ssh:/root/.ssh \