Skip to content

A Docker image that wraps the Angular CLI application.

License

Notifications You must be signed in to change notification settings

chesszebra/docker-image-ng

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

docker-image-ng

A Docker image to run the Angular CLI tools.

See also https://angular.io/guide/quickstart

Usage

Basic usage

Make sure to always map a directory to the /data directory within the container.

docker run \
    --rm \
    -it \
    -v $(pwd):/data \
    chesszebra/ng

Examples

Create a new application:

docker run \
    --rm \
    -it \
    -v ~/.gitconfig:/home/node/.gitconfig \
    -v $(pwd):/data \
    chesszebra/ng \
    new my-app

To serve an application, it might be wise to set the container name. That way you can refer to it which can be useful in cases like DNS requests.

docker run \
    --rm \
    --name my-container \
    -it \
    -v $(pwd):/data \
    chesszebra/ng \
    serve --host 0.0.0.0 --public-host my-container.docker

Releases

No releases published

Sponsor this project

Packages

No packages published