Files
docker/node/base/entrypoint.sh
T
2026-04-03 15:45:17 +02:00

20 lines
207 B
Bash

#!/bin/sh
set -e
SCRIPT="$1"
WORKDIR="$2"
echo "
Setting workdir from current dir, which is $(pwd)
"
if [ -n "$WORKDIR" ]; then
cd "$WORKDIR"
fi
echo "
Running node script
"
node $SCRIPT >/tmp/log.txt