Skip to content

Commit ecd7602

Browse files
committed
benis
1 parent 252cbf0 commit ecd7602

File tree

3 files changed

+20
-6
lines changed

3 files changed

+20
-6
lines changed

Dockerfile

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,18 @@ WORKDIR /usr/src/workspace
1313
# add `/usr/src/app/node_modules/.bin` to $PATH
1414
ENV PATH /usr/src/app/node_modules/.bin:$PATH
1515

16-
# install and cache app dependencies
17-
RUN npm install -g @angular/cli @nestjs/schematics @angular/material @angular/cdk @angular-devkit/schematics-cli @nestjs/cli @ngrx/schematics --unsafe
16+
EXPOSE 3000
17+
EXPOSE 4200
1818

19-
EXPOSE 3000 4200
19+
# install and cache app dependencies
20+
RUN npm install -g @angular/cli --unsafe
21+
RUN npm install -g @angular/cdk --unsafe
22+
RUN npm install -g @angular/material --unsafe
23+
RUN npm install -g @angular-devkit/schematics-cli --unsafe
24+
RUN npm install -g @nestjs/schematics --unsafe
25+
RUN npm install -g @ngrx/schematics --unsafe
26+
RUN npm install -g @nestjs/cli --unsafe
27+
RUN npm install -g @ngrx/schematics --unsafe
2028

2129
# start app
2230
ENTRYPOINT [ "/bin/bash" ]

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
1-
# Navrie
1+
# angular cli docker image
2+
3+
This is to make my life easier.
24

3-
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 1.7.4.
45

56
## Development server
67

78
Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.
89

10+
11+
## Exposed Ports
12+
3000
13+
4200
14+
915
## Code scaffolding
1016

1117
Run `ng generate component component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module`.

dockerdeployimage.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
$IMAGEID = "494b51fcd7b8"
1+
$IMAGEID = "0bfb07f39fcc"
22
$imageFileName = "angular-cli-builder-i"
33
$tag = "latest"
44

0 commit comments

Comments
 (0)