Sign inSign up

orbisgloria/angular-cli

By orbisgloria

•Updated almost 6 years ago

Angular CLI

Image
0

193

orbisgloria/angular-cli repository overview

⁠Dockerfile with Angular CLI

Node 14.15.0, and Angular CLI 10.2.0 Based on the node buster.

Find the image here⁠

Pulling the image

docker pull orbisgloria/angular-cli

Using the image in a Dockerfile

FROM orbisgloria/angular-cli

⁠Create new Angular project

Change to the directory where the new project will be located.

$ cd /path/to/project/
$ docker run --rm -v ${PWD}:/app orbisgloria/angular-cli \
    ng new app --directory ./ --style scss --skip-git

⁠Install dependencies

Install project dependencies.

$ docker run --rm -v ${PWD}:/app orbisgloria/angular-cli npm install

⁠Run of the project

Run with docker-compose.

version: "3"

services:
  app:
    image: orbisgloria/angular-cli
    ports:
      - "8080:4200"
    volumes:
      - ".:/app"
    command: ng serve --host 0.0.0.0

P.s. make sure to set host as 0.0.0.0.

Tag summary

Content type

Image

Digest

Size

349.3 MB

Last updated

almost 6 years ago

docker pull orbisgloria/angular-cli