console/web/docker/entrypoint-dev.sh

17 lines
278 B
Bash

#!/bin/sh
lockPath="/tmp/init.lock"
npm config set registry http://registry.npm.taobao.org/;
cd /usr/src/app
echo "START DEBUG INFINI-LOGGING-CENTER"
if [ ! -f "$lockPath" ]; then
npm install --registry=https://registry.npm.taobao.org
npm run dev
else
npm run dev
fi