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

13 lines
232 B
Bash

#!/bin/sh
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