react-logo/misc/containers/frontend/docker-entrypoint.sh

13 lines
232 B
Bash
Raw Normal View History

2020-02-04 17:20:39 +01:00
#!/bin/sh
2020-02-18 14:45:13 +01:00
FIRST_RUN_FLAG_FILE="/.first-run"
if [ ! -e "$FIRST_RUN_FLAG_FILE" ]; then
echo "Installing dependencies. Please wait..."
npm install
touch "$FIRST_RUN_FLAG_FILE"
fi
npm start -- --host 0.0.0.0 --port 8000