Guest User

Untitled

a guest
Jan 20th, 2018
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. FROM node:alpine
  2.  
  3. RUN yarn global add @angular/cli
  4. RUN yarn global add node-sass
  5.  
  6. RUN mkdir /volumes
  7.  
  8. WORKDIR /volumes
  9.  
  10. EXPOSE 4200
  11.  
  12. ENTRYPOINT ["ng"]
  13.  
  14. docker build -t my_angular_image .
  15.  
  16. // Create the new app
  17. docker run --rm --mount type=bind,src=$PWD,dst=/volumes my_angular_image new my-app --directory app --style scss
  18. // Change ownership of the generated app
  19. sudo chown -R $USER:$USER .
  20.  
  21. docker run -p 4200:4200 --mount type=bind,src=$PWD/app,dst=/volumes my_angular_image serve --host 0.0.0.0
Add Comment
Please, Sign In to add comment