Guest User

Untitled

a guest
May 20th, 2018
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. FROM node
  2.  
  3. RUN npm install -g @angular/cli
  4.  
  5. RUN mkdir /home/app/
  6.  
  7. COPY e2e/ /home/app/e2e/
  8. COPY .angular-cli.json README.md protractor.conf.js karma.conf.js package.json tsconfig.json /home/app/
  9. COPY src/ /home/app/src
  10.  
  11. WORKDIR /home/app/
  12.  
  13. RUN npm install
  14. RUN npm run build
  15. RUN ng build
  16.  
  17. FROM nginx
  18.  
  19.  
  20. COPY --from=0 /home/app/dist/ /usr/share/nginx/html/
  21.  
  22. EXPOSE 80
  23.  
  24. CMD ["nginx", "-g", "daemon off;"]
Add Comment
Please, Sign In to add comment