File tree Expand file tree Collapse file tree 5 files changed +47
-8164
lines changed Expand file tree Collapse file tree 5 files changed +47
-8164
lines changed Original file line number Diff line number Diff line change 1
1
FROM node:carbon
2
2
3
- LABEL maintainer="KINGDOM ISAAC "
4
- LABEL version="1.0 "
3
+ LABEL maintainer="Orjiewuru Kingdom (kingisaac95) "
4
+ LABEL version="0.1.1 "
5
5
6
6
ENV HOME=/app
7
7
WORKDIR $HOME
Original file line number Diff line number Diff line change
1
+ build :
2
+ webpack --mode production
3
+
4
+ build-docker :
5
+ docker build . -t react-webpack-starter
6
+
7
+ run-docker :
8
+ docker run -p 8080:8080 -v rws:/app react-webpack-starter:la
Original file line number Diff line number Diff line change @@ -45,9 +45,45 @@ Run Coverage
45
45
npm run report-coverage
46
46
```
47
47
48
+ ## Docker
49
+
50
+ Build the image with the command
51
+
52
+ ``` sh
53
+ docker build . -t react-webpack-starter
54
+ ```
55
+
56
+ This builds the image with the tag ` react-webpack-starter ` . Once this is completed, you can instantiate the container with the image with the command
57
+
58
+ ``` sh
59
+ docker run -p 8080:8080 -v rws:/app react-webpack-starter:latest
60
+ ```
61
+
62
+ ## Using Makefile
63
+
64
+ Build Docker Image
65
+
66
+ ``` sh
67
+ make build-docker
68
+ ```
69
+
70
+ Run Docker Image
71
+
72
+ ``` sh
73
+ make run-docker
74
+ ```
75
+
76
+ Generate Production Build
77
+
78
+ ``` sh
79
+ make build
80
+ ```
81
+
48
82
## Release History
49
83
50
84
* 0.1.1
85
+ * Dockerize application
86
+ * Add Makefile
51
87
* Update Readme and add badges
52
88
* Setup Travis build and add tests
53
89
* 0.1.0
@@ -56,17 +92,6 @@ npm run report-coverage
56
92
* 0.0.1
57
93
* Work in progress
58
94
59
- ### Docker
60
-
61
- Build the image with the command
62
- ``` sh
63
- docker build . -t react-webpack-start
64
- ```
65
- This builds the image with the tag ` react-webpack-start ` . Once this is completed, you can instantiate the container with the image with the command
66
- ``` sh
67
- docker run -p 8080:8080 -v rws:/app react-webpack-start:latest
68
- ```
69
-
70
95
## Meta
71
96
72
97
Orjiewuru Kingdom –
[ @kingisaac95 ] ( https://twitter.com/kingisaac95 ) –
[email protected]
Original file line number Diff line number Diff line change 10
10
"report-coverage" : " jest --env=jsdom --coverage --coverageReporters=text-lcov | coveralls"
11
11
},
12
12
"keywords" : [],
13
- "author" : " kingisaac95" ,
13
+ "author" : " Orjiewuru Kingdom ( kingisaac95) " ,
14
14
"license" : " MIT" ,
15
15
"devDependencies" : {
16
16
"babel-core" : " ^6.26.3" ,
You can’t perform that action at this time.
0 commit comments