添加docker安装node

This commit is contained in:
marvzhang
2020-01-03 15:45:18 +08:00
parent 7310df1be6
commit ec2a738958
8 changed files with 18 additions and 181 deletions

View File

@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash
# replace default api path to new one
if [ "${CRAWLAB_API_ADDRESS}" = "" ];
@@ -22,5 +22,12 @@ fi
# start nginx
service nginx start
# install languages: Node.js
if [ "${CRAWLAB_SERVER_LANG_NODE}" = "Y" ];
then
echo "installing node.js"
/bin/sh /app/backend/scripts/install-nodejs.sh
fi
# start backend
crawlab