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

remove wechaty dependence from npm install (#500)

上级 216c8c72
......@@ -6,7 +6,10 @@ ONBUILD ENV NODE_ENV $NODE_ENV
ONBUILD WORKDIR /bot
ONBUILD COPY package.json .
ONBUILD RUN npm install && npm cache clean && rm -fr /tmp/* ~/.npm
ONBUILD RUN sudo chown bot package.json \
&& jq 'del(.dependencies.wechaty)' package.json | sponge package.json \
&& npm install \
&& rm -fr /tmp/* ~/.npm
ONBUILD COPY . .
CMD [ "npm", "start" ]
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册