Guest User

Untitled

a guest
Jan 19th, 2019
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. FROM node:8.11.1
  2.  
  3. # Override the base log level (info).
  4. ENV NPM_CONFIG_LOGLEVEL warn
  5.  
  6. # Install and configure `serve`.
  7. RUN npm install -g serve
  8. CMD serve -s build
  9. EXPOSE 5000
  10.  
  11. # Install all dependencies of the current project.
  12. COPY package.json package.json
  13. RUN npm install
  14.  
  15. # Copy all local files into the image.
  16. COPY . .
  17.  
  18. # Build for production.
  19. RUN npm run build:staging --production
Add Comment
Please, Sign In to add comment