Skip to content

Instantly share code, notes, and snippets.

@longngn
Created September 6, 2018 15:33
Show Gist options
  • Save longngn/176f941cc736ad5d30dad5fc7f3fe635 to your computer and use it in GitHub Desktop.
Save longngn/176f941cc736ad5d30dad5fc7f3fe635 to your computer and use it in GitHub Desktop.
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