-
-
Save tecnocrata/a141c77e21932de764646ec1f377a610 to your computer and use it in GitHub Desktop.
Install node modules before copying over your working code so that node_modules are built (and cached) before you change your service code!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # ... | |
| ADD package.json /tmp/package.json | |
| RUN cd /tmp && npm install && \ | |
| mkdir -p /opt/app && cp -a /tmp/node_modules /opt/app/ | |
| # ... | |
| WORKDIR /opt/app | |
| ADD . /opt/app |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment