An open API service indexing awesome lists of open source software.

https://github.com/chesszebra/docker-image-ng

A Docker image that wraps the Angular CLI application.
https://github.com/chesszebra/docker-image-ng

angular angular-cli cli docker docker-image image

Last synced: 2 months ago
JSON representation

A Docker image that wraps the Angular CLI application.

Awesome Lists containing this project

README

        

# 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
```