feat: add bindable working dir /usr/bin/app

working directory can now be bound to user host machine
This commit is contained in:
2025-02-23 06:03:13 -07:00
parent 71027041c8
commit 6228c9ec08
5 changed files with 19 additions and 9 deletions

View File

@@ -27,6 +27,7 @@ fi
echo " Port(s) $(echo $WEB_PORT)"
echo " Gateway $(echo $IP_GATEWAY)"
echo " Web Server $(echo $IP_CONTAINER:$WEB_PORT)"
echo " App Folder $(echo $WORKING_DIR)"
echo ""
echo '──────────────────────────────────────────────────────────────────────────────────────────'

View File

@@ -1,3 +1,10 @@
#!/usr/bin/with-contenv sh
cd "/usr/src/app"
# #
# install and startup for tvapp2
# #
cp -r ${INSTALL_DIR} ${WORKING_DIR}
rm -rf ${INSTALL_DIR}/*
cd ${WORKING_DIR}
npm start