Skip to content

Commit

Permalink
Update CLI version to 1.6.7-chromium
Browse files Browse the repository at this point in the history
  • Loading branch information
alejandroSuch committed Feb 20, 2018
1 parent 1c9d16a commit 98a95c8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM alexsuch/angular-cli:base
LABEL authors="Alejandro Such <[email protected]> , Mihai Bob <[email protected]>"

RUN apk update \
&& yarn global add @angular/[email protected].6 \
&& yarn global add @angular/[email protected].7 \
&& ng set --global packageManager=yarn \
&& rm -rf /tmp/* /var/cache/apk/* *.tar.gz ~/.npm \
&& npm cache clear --force \
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
|___/
```

**@angular/cli:** 1.6.6<br/>
**@angular/cli:** 1.6.7<br/>
**node:** 6.11.2<br/>
**npm:** 3.10.10<br/>
**yarn:** 0.27.5<br/>
Expand All @@ -22,19 +22,19 @@ This image has the same usage as Angular CLI (https://cli.angular.io/)
### Creating a project

```
docker run -it --rm -w /app -v $(pwd):/app alexsuch/angular-cli:1.6.6-chromium ng new my-project-name
docker run -it --rm -w /app -v $(pwd):/app alexsuch/angular-cli:1.6.7-chromium ng new my-project-name
```

### Generating a component

```
docker run -it --rm -w /app -v $(pwd)/my-project-name:/app alexsuch/angular-cli:1.6.6-chromium ng g component sample-component
docker run -it --rm -w /app -v $(pwd)/my-project-name:/app alexsuch/angular-cli:1.6.7-chromium ng g component sample-component
```

### Serving

```
docker run -it --rm -w /app -v $(pwd)/my-project-name:/app -p 4200:4200 alexsuch/angular-cli:1.6.6-chromium ng serve --host 0.0.0.0
docker run -it --rm -w /app -v $(pwd)/my-project-name:/app -p 4200:4200 alexsuch/angular-cli:1.6.7-chromium ng serve --host 0.0.0.0
```

## Credits
Expand Down

0 comments on commit 98a95c8

Please sign in to comment.