调整quickstart 脚本

This commit is contained in:
jingjingxyk
2023-05-24 13:30:22 +08:00
parent f831b4d61d
commit 7fb3d05b2c
9 changed files with 52 additions and 76 deletions

View File

@@ -0,0 +1,25 @@
#!/bin/bash
set -exu
__DIR__=$(
cd "$(dirname "$0")"
pwd
)
__PROJECT__=$(
cd ${__DIR__}/../../
pwd
)
cd ${__DIR__}
{
docker stop static-php-cli-dev-1
} || {
echo $?
}
cd ${__DIR__}
IMAGE=alpine:3.16
cd ${__DIR__}
docker run --rm --name static-php-cli-dev-1 -d -v ${__PROJECT__}:/work -w /work $IMAGE tail -f /dev/null