Files
dockerfiles/node/docker-entrypoint.sh
Gong Sophia cff5e52231 add node env
Signed-off-by: Gong Sophia <sophia.gong@intel.com>
2019-11-08 16:34:12 +08:00

10 lines
142 B
Bash

#!/bin/sh
set -e
if [ "${1#-}" != "${1}" ] || [ -z "$(command -v "${1}")" ]; then
set -- node "$@"
fi
echo "IMAGE NAME: $NAME"
exec "$@"