Skip to content

Instantly share code, notes, and snippets.

@longngn
Last active September 6, 2018 15:17
Show Gist options
  • Save longngn/0184b6e10aacff558f61742bc05433da to your computer and use it in GitHub Desktop.
Save longngn/0184b6e10aacff558f61742bc05433da to your computer and use it in GitHub Desktop.
Dockerfile run npm install based on environments example
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