Julien Fastré
412cc332bb
All checks were successful
continuous-integration/drone/tag Build is passing
22 lines
333 B
Bash
Executable File
22 lines
333 B
Bash
Executable File
#!/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 \
|
|
node:16 ${cmd}
|