diff --git a/Dockerfile b/Dockerfile index c875dc8405a1038176200333d62c61b60d98cc42..fae50683a7d7cb0c6b7593fd123d67d04c113e70 100644 --- a/Dockerfile +++ b/Dockerfile @@ -33,11 +33,12 @@ RUN npm --progress false install > /dev/null \ COPY . . 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" ] ENV TS_NODE_COMPILER_OPTIONS '{"target":"es6"}' -ENV NODE_PATH /usr/local/lib/node_modules ENTRYPOINT [ "/wechaty/bin/entrypoint.sh" ] CMD [ "start" ]