2022-07-11 17:27:00 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# exécute toujours dans le répertoire `php`
|
|
|
|
cd $(dirname $0)
|
|
|
|
|
|
|
|
if [ $# -eq 0 ]
|
|
|
|
then
|
|
|
|
cmd=bash
|
|
|
|
else
|
|
|
|
cmd="${@}"
|
|
|
|
fi
|
|
|
|
|
|
|
|
docker run \
|
|
|
|
--rm \
|
|
|
|
--interactive \
|
|
|
|
--tty \
|
|
|
|
--user $(id -u):$(id -g) \
|
|
|
|
--volume ${PWD}:/app \
|
|
|
|
--workdir /app \
|
|
|
|
--env YARN_CACHE_FOLDER=/app/.yarncache \
|
2024-02-08 23:00:13 +00:00
|
|
|
node:20 ${cmd}
|