Sign inSign up

kingmario/angular-cli

By kingmario

•Updated about 5 years ago

angular-cli 1.7.6, 6.2.7, 7.3.9, 8.3.29, 9.1.12, 10.2.5 11.2.14 ...

Image
0

540

kingmario/angular-cli repository overview

Used to create Angular projects of the latest 3 versions.

Get on board: docker run -it kingmario/angular-cli:[version-tag] sh

Optional step to set up git user with your name and email address(recommended for version 7).

Create an Angular 5 project in the container: ng new --skip-install --skip-git ng5-proj.

Or create an Angular 6+ project: ng new ng[x]-proj.

Then use docker cp to copy the project from the container in another terminal window.

Docker file template FYI:

FROM node:10-alpine

⁠install chromium for headless browser tests

ENV CHROME_BIN=/usr/bin/chromium-browser RUN apk add --no-cache chromium udev ttf-freefont

RUN apk add --no-cache git

⁠install angular-cli as node user

RUN chown -R node:node /usr/local/lib/node_modules
&& chown -R node:node /usr/local/bin

USER node RUN npm install -g @angular/cli[@]

⁠set npm as default package manager for root

USER root

⁠for tag 1.7.3 and 6.2.7 only

RUN ng set --global packageManager=npm

Tag summary

Content type

Image

Digest

Size

205.2 MB

Last updated

about 5 years ago

docker pull kingmario/angular-cli:11.2.14