CoolFace
Apppublic

MasterDee/chat-ui

sourceHugging Faceapache-2.0updated 2y agoView on Hugging Face
0likes
entrypoint.sh19 linesDownload Raw Back to root
1ENV_LOCAL_PATH=/app/.env.local2 3if test -z "${DOTENV_LOCAL}" ; then4    if ! test -f "${ENV_LOCAL_PATH}" ; then5        echo "DOTENV_LOCAL was not found in the ENV variables and .env.local is not set using a bind volume. Make sure to set environment variables properly. "6    fi;7else8    echo "DOTENV_LOCAL was found in the ENV variables. Creating .env.local file."9    cat <<< "$DOTENV_LOCAL" > ${ENV_LOCAL_PATH}10fi;11 12if [ "$INCLUDE_DB" = "true" ] ; then13    echo "Starting local MongoDB instance"14    nohup mongod &15fi;16 17export PUBLIC_VERSION=$(node -p "require('./package.json').version")18 19dotenv -e /app/.env -c -- node /app/build/index.js -- --host 0.0.0.0 --port 3000