Skip to content

Commit

Permalink
Fix pre install all puppets in docker image (#1820)
Browse files Browse the repository at this point in the history
  • Loading branch information
huan committed Jul 19, 2019
1 parent a8310df commit 1f58a1d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,6 @@ RUN ./scripts/generate-version.sh && rm -f src/version.spec.ts
RUN npm test
RUN npm run dist

# Pre-Install All Puppets
RUN npm run puppet-install \
&& sudo rm -fr /tmp/* ~/.npm

# 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 sudo mkdir /bot \
Expand All @@ -79,6 +75,11 @@ RUN sudo mkdir /bot \
&& sudo ln -sfv /wechaty/tsconfig.json / \
&& echo 'Linked Wechaty to Global'

# Pre-install all puppets.
# Must be placed after `npm link`, or it will be all deleted by `npm link`
RUN npm run puppet-install \
&& sudo rm -fr /tmp/* ~/.npm

ENTRYPOINT [ "/wechaty/bin/entrypoint.sh" ]
CMD [ "" ]

Expand Down

0 comments on commit 1f58a1d

Please sign in to comment.