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.
- Host: GitHub
- URL: https://github.com/chesszebra/docker-image-ng
- Owner: chesszebra
- License: mit
- Created: 2018-05-13T20:13:23.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2020-12-02T21:06:47.000Z (over 4 years ago)
- Last Synced: 2025-01-09T09:25:18.734Z (4 months ago)
- Topics: angular, angular-cli, cli, docker, docker-image, image
- Language: Shell
- Size: 11.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
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
```