mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 04:44:53 +08:00
26 lines
336 B
Bash
26 lines
336 B
Bash
#!/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=debian:11
|
|
|
|
cd ${__DIR__}
|
|
docker run --rm --name static-php-cli-dev-1 -d -v ${__PROJECT__}:/work -w /work $IMAGE tail -f /dev/null
|
|
|