Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- FROM node:alpine
- RUN yarn global add @angular/cli
- RUN yarn global add node-sass
- RUN mkdir /volumes
- WORKDIR /volumes
- EXPOSE 4200
- ENTRYPOINT ["ng"]
- docker build -t my_angular_image .
- // Create the new app
- docker run --rm --mount type=bind,src=$PWD,dst=/volumes my_angular_image new my-app --directory app --style scss
- // Change ownership of the generated app
- sudo chown -R $USER:$USER .
- 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