Skip to content

Commit

Permalink
Update CLI version to 6.0.0-beta.2-chromium
Browse files Browse the repository at this point in the history
  • Loading branch information
alejandroSuch committed Feb 20, 2018
1 parent e0737bb commit e66f222
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/cli@1.7.0-beta.1 \
&& yarn global add @angular/cli@6.0.0-beta.2 \
&& 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.7.0-beta.1<br/>
**@angular/cli:** 6.0.0-beta.2<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.7.0-beta.1-chromium ng new my-project-name
docker run -it --rm -w /app -v $(pwd):/app alexsuch/angular-cli:6.0.0-beta.2-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.7.0-beta.1-chromium ng g component sample-component
docker run -it --rm -w /app -v $(pwd)/my-project-name:/app alexsuch/angular-cli:6.0.0-beta.2-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.7.0-beta.1-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:6.0.0-beta.2-chromium ng serve --host 0.0.0.0
```

## Credits
Expand Down

0 comments on commit e66f222

Please sign in to comment.