Created
September 6, 2018 15:33
-
-
Save longngn/176f941cc736ad5d30dad5fc7f3fe635 to your computer and use it in GitHub Desktop.
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
FROM node:8-alpine | |
WORKDIR /usr/src/your-app | |
COPY package*.json ./ | |
RUN if [ "$NODE_ENV" = "development" ]; \ | |
then npm install; \ | |
else npm install --only=production; \ | |
fi | |
COPY . . |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment