提交 c8c21392 编写于 作者: Huan (李卓桓)'s avatar Huan (李卓桓)

no need to link wechaty because we have /node_modules/wechaty at root...

no need to link wechaty because we have /node_modules/wechaty at root directory. and also that xvfb-chrome is already in path /wechaty/bin
上级 0262dc3b
......@@ -41,10 +41,8 @@ RUN sed -i '/chromedriver/d' package.json \
&& npm --progress=false link \
\
&& mkdir /bot \
\
&& mkdir /node_modules && ln -s /wechaty /node_modules \
\
&& ln -s /wechaty/bin/xvfb-run /usr/local/bin \
&& mkdir /node_modules \
&& ln -s /wechaty /node_modules \
&& ln -s /wechaty/tsconfig.json / \
\
&& echo 'Linked wechaty to global'
......
......@@ -114,9 +114,9 @@ function wechaty::runBot() {
yarn < /dev/null # yarn will close stdin??? cause `read` command fail after yarn
}
echo -n "Linking Wechaty module to bot ... "
npm link wechaty < /dev/null > /dev/null 2>&1
echo "linked. "
# echo -n "Linking Wechaty module to bot ... "
# npm link wechaty < /dev/null > /dev/null 2>&1
# echo "linked. "
echo "Executing ts-node $*"
local -i ret=0
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册