File tree 3 files changed +28
-1
lines changed
3 files changed +28
-1
lines changed Original file line number Diff line number Diff line change
1
+ .git
2
+ node_modules
Original file line number Diff line number Diff line change
1
+ FROM node:12.16.1-alpine As builder
2
+
3
+ WORKDIR /usr/src/app
4
+
5
+ COPY package.json package-lock.json ./
6
+
7
+ RUN npm install
8
+
9
+ COPY . .
10
+
11
+ RUN npm run build --prod
12
+
13
+ FROM nginx:1.15.8-alpine
14
+
15
+ COPY --from=builder /usr/src/app/dist/angular-starter/ /usr/share/nginx/html
Original file line number Diff line number Diff line change 1
1
[ ![ default] ( https://user-images.githubusercontent.com/7531596/81993396-d5142b00-9645-11ea-995f-98342b7d5c8f.png )] ( https://github.com/wlucha/angular-starter )
2
- # Angular 9 + Material + Transloco + Jest + Compodoc
2
+ # Angular 9 + Material + Transloco + Jest + Compodoc + Docker
3
3
Angular 9 Starter project with Material, Transloco, Jest & ; Compodoc
4
4
by [ @wlucha ] ( https://github.com/wlucha )
5
5
@@ -18,6 +18,7 @@ by [@wlucha](https://github.com/wlucha)
18
18
✅ Internationalization with Transloco
19
19
✅ Auto documentation with Compodoc
20
20
✅ Analyse your project with webpack-bundle-analyzer
21
+ ✅ Docker Support
21
22
22
23
## Deploy
23
24
[ ![ Deploy] ( https://www.herokucdn.com/deploy/button.png )] ( https://heroku.com/deploy )
@@ -40,6 +41,15 @@ npm run start
40
41
# Open in browser: http://localhost:4200
41
42
```
42
43
44
+ ## Docker Deployment
45
+ ``` bash
46
+ # Build Docker image
47
+ docker build . -t angular-starter
48
+
49
+ # Run Docker Container
50
+ docker run -p 3000:80 angular-starter
51
+ ```
52
+
43
53
## Commands
44
54
- ` npm run start ` - start the app
45
55
- ` npm run test ` - run unit tests
You can’t perform that action at this time.
0 commit comments