Skip to content

Instantly share code, notes, and snippets.

@serafdev
Last active February 20, 2020 12:24
Show Gist options
  • Save serafdev/30248191e5999acb81ce6a3671c0a791 to your computer and use it in GitHub Desktop.
Save serafdev/30248191e5999acb81ce6a3671c0a791 to your computer and use it in GitHub Desktop.
A node docker-entrypoint script
#!/bin/sh
case $1 in
dev)
yarn
echo "Running development server on 0.0.0.0:3000.."
yarn start
;;
test)
echo "Running tests.."
yarn test
;;
sh)
/bin/sh
;;
esac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment