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

link global npm node_modules directory to root in order to be an *real* global module

上级 2a71d33e
...@@ -33,11 +33,12 @@ RUN npm --progress false install > /dev/null \ ...@@ -33,11 +33,12 @@ RUN npm --progress false install > /dev/null \
COPY . . COPY . .
RUN npm --progress false link RUN npm --progress false link
RUN mkdir /app # Loading from node_modules Folders: https://nodejs.org/api/modules.html
# If it is not found there, then it moves to the parent directory, and so on, until the root of the file system is reached.
RUN mkdir /app && ln -s /usr/local/lib/node_modules /
VOLUME [ "/app" ] VOLUME [ "/app" ]
ENV TS_NODE_COMPILER_OPTIONS '{"target":"es6"}' ENV TS_NODE_COMPILER_OPTIONS '{"target":"es6"}'
ENV NODE_PATH /usr/local/lib/node_modules
ENTRYPOINT [ "/wechaty/bin/entrypoint.sh" ] ENTRYPOINT [ "/wechaty/bin/entrypoint.sh" ]
CMD [ "start" ] CMD [ "start" ]
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册