Init files

This commit is contained in:
2020-05-31 15:06:55 +03:00
commit 3cd6a07fbf
29 changed files with 947 additions and 0 deletions

21
tools/node Executable file
View File

@ -0,0 +1,21 @@
#!/bin/bash
set -eu
source .env
TTY=
if [ -t 1 ] ; then
TTY=--tty
fi
docker run \
--rm \
--interactive \
${TTY} \
--init \
--user "$(id -u):$(id -g)" \
--volume "$PWD:/app" \
--workdir /app \
${NODE_IMAGE} \
node "$@"