Guest User

Untitled

a guest
Oct 12th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. FROM node:8
  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.  
  12. # Install all dependencies of the current project.
  13. COPY package.json package.json
  14. COPY package-lock.json package-lock.json
  15. RUN npm install
  16.  
  17. # Copy all local files into the image.
  18. COPY src src
  19. COPY public public
  20.  
  21. # Build for production.
  22. RUN npm run build --production
Add Comment
Please, Sign In to add comment