daily pastebin goal
17%
SHARE
TWEET

Untitled

a guest Oct 12th, 2018 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top