responsive-table-fluxbox/docker-node.sh
2021-05-17 09:26:09 +02:00

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}