21 lines
287 B
Bash
21 lines
287 B
Bash
#!/bin/bash
|
|
|
|
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:14 ${cmd}
|