Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yannoff/docker-ng
(WIP) A docker node image with TypeScript & Angular CLI
https://github.com/yannoff/docker-ng
angular angular-cli docker nodejs ts tsc typescript
Last synced: 22 days ago
JSON representation
(WIP) A docker node image with TypeScript & Angular CLI
- Host: GitHub
- URL: https://github.com/yannoff/docker-ng
- Owner: yannoff
- License: mit
- Created: 2021-12-20T13:41:11.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2022-03-16T21:29:15.000Z (almost 3 years ago)
- Last Synced: 2024-11-18T16:45:26.867Z (3 months ago)
- Topics: angular, angular-cli, docker, nodejs, ts, tsc, typescript
- Language: Dockerfile
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# yannoff/ng
A node docker image with Angular.
## Usage
### Dynamic build
#### Build arguments
Name|Description
---|---
`GIT_USER`|Optional value to be stored as `user.name` global config
`GIT_EMAIL`|Optional value to be stored as `user.email` global config#### Example
_Dynamic builds allow for flexible images._
```yaml
# docker-compose.yaml
version: '3.6'
services:
ng:
build:
context: https://github.com/yannoff/docker-ng.git#:14
args:
GIT_USER: acme
GIT_EMAIL: [email protected]volumes:
- ./:/srcworking_dir: /src
ports:
- 4200:4200# Here we launch the Angular Live Development Server
# as the main container command
# Beware that in order to be accessible from the host
# machine, the server must listen to 0.0.0.0 instead
# of the default "localhost" binding
command:
- ng
- serve
- --host
- 0.0.0.0
- --verbose
- --watch
```### Compiled image
_Compiled images are convenient to run one-shot commands, such as creating a brand new project._
#### Supported tags
- [yannoff/ng:16](https://github.com/yannoff/docker-ng/tree/master/14/Dockerfile) Based on [node:16-alpine](https://github.com/nodejs/docker-node/blob/b36041b26d8423f1838fb8232411a12f882cbb6a/16/alpine3.15/Dockerfile).
- [yannoff/ng:14](https://github.com/yannoff/docker-ng/tree/master/14/Dockerfile) Based on [node:14-alpine](https://github.com/nodejs/docker-node/blob/b36041b26d8423f1838fb8232411a12f882cbb6a/14/alpine3.15/Dockerfile).
- [yannoff/ng:12](https://github.com/yannoff/docker-ng/tree/master/14/Dockerfile) Based on [node:12-alpine](https://github.com/nodejs/docker-node/blob/b36041b26d8423f1838fb8232411a12f882cbb6a/12/alpine3.15/Dockerfile).#### Example
```
docker run -it --rm -u $UID:$GID -v $PWD:/src -w /src yannoff/ng ng new hello-world
```## License
Licensed under the [MIT License](LICENSE).