Last active
September 6, 2018 15:17
-
-
Save longngn/0184b6e10aacff558f61742bc05433da to your computer and use it in GitHub Desktop.
Dockerfile run npm install based on environments example
This file contains 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
RUN if [ "$NODE_ENV" = "development" ]; \ | |
then npm install; \ | |
else npm install --only=production; \ | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment