Skip to content

Commit d89c9fe

Browse files
committed
feat: add npm install to container
1 parent 81ca06f commit d89c9fe

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

entrypoint-user.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,16 @@ if [ ! -d "/app/log" ]; then
4444
ln -s "${LGSM_LOGDIR}" "/app/log"
4545
fi
4646

47+
# npm install in /app/lgsm
48+
if [ -f "/app/lgsm/package.json" ]; then
49+
echo -e ""
50+
echo -e "npm install in /app/lgsm"
51+
echo -e "================================="
52+
cd /app/lgsm || exit
53+
npm install
54+
cd /app || exit
55+
fi
56+
4757
# Clear modules directory if not master
4858
if [ "${LGSM_GITHUBBRANCH}" != "master" ]; then
4959
echo -e "not master branch, clearing modules directory"

0 commit comments

Comments
 (0)