Last active
February 20, 2020 12:24
-
-
Save serafdev/30248191e5999acb81ce6a3671c0a791 to your computer and use it in GitHub Desktop.
A node docker-entrypoint script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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