Skip to content

Commit

Permalink
Update CLI version to 1.7.3
Browse files Browse the repository at this point in the history
  • Loading branch information
alejandroSuch committed Mar 28, 2018
1 parent aed8f13 commit 7849e10
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 @@ -4,7 +4,7 @@ LABEL authors="Alejandro Such <[email protected]> , Mihai Bob <mihai.m.bo

RUN apk update \
&& apk add --update alpine-sdk python \
&& yarn global add @angular/[email protected].0 \
&& yarn global add @angular/[email protected].3 \
&& ng set --global packageManager=yarn \
&& apk del alpine-sdk python \
&& rm -rf /tmp/* /var/cache/apk/* *.tar.gz ~/.npm \
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<br/>
**@angular/cli:** 1.7.3<br/>
**node:** 6.11.2<br/>
**npm:** 3.10.10<br/>
**yarn:** 0.24.6<br/>
Expand All @@ -24,19 +24,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 ng new my-project-name
docker run -it --rm -w /app -v $(pwd):/app alexsuch/angular-cli:1.7.3 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 ng g component sample-component
docker run -it --rm -w /app -v $(pwd)/my-project-name:/app alexsuch/angular-cli:1.7.3 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 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.7.3 ng serve --host 0.0.0.0
```

## Credits
Expand Down

0 comments on commit 7849e10

Please sign in to comment.